Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • leeatkinson 33 posts 44 karma points
    Nov 20, 2009 @ 21:05
    leeatkinson
    1

    404 handler returns 200 rather than 404

    Hi

    I have setup a 404 handler page (by setting error404 in umbraco.settings to the node id of the page). However, 200 error code is returned rather than 404. Is that by design?

    It does result in the search engines indexing it as a existing page rather than seeing it has a page not found.

     

    Lee

  • Lee 1130 posts 3088 karma points
    Nov 20, 2009 @ 21:17
    Lee
    1

    Can't you just create a usercontrol with 

     

    Response.Status = "404 Not Found";
    Response.StatusCode = 404;

     

    in the page load and add it to a macro and insert it in the page?

     

  • Fernando Camillo 41 posts 82 karma points
    Jul 28, 2011 @ 16:52
    Fernando Camillo
    0

    It worked for me. Thank you!

Please Sign in or register to post replies

Write your reply to:

Draft