return a 301 for a 404?

Posted on 2014-08-29
Last Modified: 2014-08-29
Typically in the past, I've returned a status code 404 for page not found errors using IIS and a custom 404 error page. However, another option being suggested by a fellow team member is to return a 301 instead of a 404. I've not done it this way before and wanted to get some feedback and suggestions on how to do it this way? The thought behind the 301 is to do a permanent redirect to the home page.
Question by:robanddeanna
    LVL 82

    Assisted Solution

    by:Dave Baldwin
    If it makes any difference to you, Google doesn't want you to do that because it is misleading.  It would indicate that a page is there when it isn't.  You can instead do a 'meta' refresh back to your home page on your custom error page.
    LVL 39

    Assisted Solution

    by:Kyle Abrahams
    You use a 301 when renaming pages or domains, with no intention of coming back.  So if the page existed before and it will never exist again a 301 is a valid option.  If the user just mistypes the page though it should return a 404.
    LVL 37

    Accepted Solution

    I would never consider such a thing! Would never advise such a thing and would go as far as to say Don't do it!

    HTTP Protocol error numbers exist for a reason.  a 301 is a perm redirect. Search engines will see this as "The page exists but its moved, its now at......" and go to your home page, indexing it again and quietly noting that it is visiting this page an awful lot, seeing it as an attempt to "FIX" SEO.

    Use a standard custom 404 page that includes a LINK to your home page.
    LVL 28

    Assisted Solution

    There is nothing that stops you from doing a redirect, I just think that you want to be able to actually know if content has moved or been deleted.

    I suggest sticking with your custom 404 (This helps to identify issues of missing content)

    Imagine if someone deleted a file accidentally, users would never know anything was broken because they would just keep going back to the home page.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Top 6 Sources for Identifying Threat Actor TTPs

    Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

    Suggested Solutions

    Title # Comments Views Activity
    Exchange Internal Certificate error 5 41
    WCF Services and authentication 1 59
    smtp server IIS 6 9 34
    IIS Question 8 34
    Lync server 2013 Backup Service Error ID 4049 – After File Share Migration
    When it comes to showing a 404 error page to your visitors, you do not want that generic page to show, and you especially do not want your hosting provider’s ad error page to show either. In this article, I will show you how to enable the custom 40…
    This video is in connection to the article "The case of a missing mobile phone (". It will help one to understand clearly the steps to track a lost android phone.
    Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

    759 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    8 Experts available now in Live!

    Get 1:1 Help Now