Page 2 of 2 FirstFirst 12
Results 11 to 17 of 17

Thread: RFH's 404 pages with a 200 header?

  1. #11
    Join Date
    Apr 2006
    Location
    Amsterdam
    Posts
    352
    Thanks
    20
    Thanked 11 Times in 11 Posts

    Default

    Should it retrun a code 200? I am not an expert on this matter. But if your having a page like this, saying "The Web site X cannot be found", shouldn't it come with a status code that says likewise?
    Last edited by Rappie; 22nd January 2008 at 07:03 PM.

  2. #12
    Join Date
    Mar 2005
    Location
    Isle of Man
    Posts
    1,261
    Thanks
    3
    Thanked 24 Times in 24 Posts

    Default

    The page, as served by potassium, does exist, therefore a 200 header is appropriate. It is the page the redirect has come from that does not exist, and it is this redirect that gets a 307 header—for a temporary redirect.
    The idea being that a search engine will see that this redirection is not permanent and will recheck it regularly. The page it then is redirected to with the error details will not be indexed because it contains the noindex meta tag.

    Most hosts probably just have a non-existent website/subdomain leading to nothingness, giving no response at all.

    Another option could be to have it display a standard 404 based on the parent domain's 404 error page, which we can customise, but it is sometimes useful to get the additional info the current details page shows, and Warren may have other reasons for just handling in the current manner.

  3. #13
    Join Date
    Apr 2006
    Location
    Amsterdam
    Posts
    352
    Thanks
    20
    Thanked 11 Times in 11 Posts

    Default

    I see, its in the redirect. Thanks for the explaintion nick. I guess a 200 header should be fine then .

  4. #14
    Join Date
    Jan 2006
    Posts
    419
    Thanks
    2
    Thanked 16 Times in 16 Posts

    Default

    I do not agree that http 200 status is correct - http 200 status indicates that the page request has been sucessful.

    The problem that actually exists is that you are requesting a page from a site that does not exist and by default a page is being returned.

    I just checked work and I believe the correct code is 400 and the error returned by IIS 6 to the client if show friendly http errors off is Bad Request (Invalid Hostname)

    The situation occurs when a FQDN resolves to a server where the site has not been configured in IIS.

    10.4.1 400 Bad Request
    The request could not be understood by the server due to malformed syntax. The client SHOULD NOT repeat the request without modifications.

  5. #15
    Join Date
    Feb 2004
    Posts
    4,903
    Thanks
    2
    Thanked 134 Times in 113 Posts

    Default

    Quote Originally Posted by jimlewis View Post
    I do not agree that http 200 status is correct - http 200 status indicates that the page request has been sucessful.
    Which it has been, the redirect is made to a successful/valid page.

    Its the status code of the redirect to the valid page (307 Temporary Redirect) which tells the search engines the current behavior isn't a permanent representation of the URL it is indexing.
    Warren Ashcroft
    Red Fox UK Limited - Pioneers in Internet Technology
    http://www.redfoxuk.com
    w.ashcroft [at] redfoxuk.com

    NOTE: Forum Private Messaging should not be used to contact staff with support queries.

  6. #16
    Join Date
    Jan 2006
    Posts
    419
    Thanks
    2
    Thanked 16 Times in 16 Posts

    Default

    Hi Warren,

    Was just editing the post whilst you were posting.

    BTW IE7 has a nice plugin called fiddler for sniffing http request / response if anyone wants to see what is happening.

    I will message you an URL which returns a 400 error.

  7. #17
    Join Date
    Feb 2004
    Posts
    4,903
    Thanks
    2
    Thanked 134 Times in 113 Posts

    Default

    Quote Originally Posted by jimlewis View Post
    BTW IE7 has a nice plugin called fiddler for sniffing http request / response if anyone wants to see what is happening.
    I know, I use Fiddler all the time.

    Quote Originally Posted by jimlewis View Post
    I will message you an URL which returns a 400 error.
    HTTP 400 is the status IIS returns when there is no matching website hosted at the server (and the Default Web Site with All Unassigned Bindings is disabled). Not sure what you are getting at mentioning this?
    Warren Ashcroft
    Red Fox UK Limited - Pioneers in Internet Technology
    http://www.redfoxuk.com
    w.ashcroft [at] redfoxuk.com

    NOTE: Forum Private Messaging should not be used to contact staff with support queries.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Custom error pages.....
    By jigsawsrusdotcom in forum Sales and Service Feature Enquiries
    Replies: 5
    Last Post: 17th November 2006, 03:54 PM
  2. Yellow pages
    By Jaro in forum Portal/CMS Applications
    Replies: 2
    Last Post: 29th December 2005, 11:38 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •