Return 404 that Google understand

Last post 10-25-2008 8:23 AM by Lyra Belaqua. 1 replies.

Sort Posts:

  • Return 404 that Google understand

    10-25-2008, 7:28 AM
    • Member
      45 point Member
    • stuckish
    • Member since 07-02-2002, 3:18 AM
    • Sweden
    • Posts 30

    I have a page where i sometimes remove stuff from the database and therefore also pages that google has in it's index. Say http://mysite.com/user/userpage.aspx?userid=12345

    If i remove the user with userid 12345 i want to return a 404 page that says "Page not found" so that the page is removed from the index. I could of course just return something like "The user is not found" but i guess Google would appriciate if i return a 404. Anyone have any tip how to do this?

    Filed under: ,
  • Re: Return 404 that Google understand

    10-25-2008, 8:23 AM
    Answer
    • Participant
      1,255 point Participant
    • Lyra Belaqua
    • Member since 05-28-2008, 5:09 AM
    • Posts 277

     Hi stuckish,

    Please try this.

    http://blog.abwebsitedesign.com/2008/09/custom-error-handling-in-aspnet-c-c.html

    http://www.evolt.org/article/mblog/4090/4299/

    Hope this will help you.

    Warm Regards.

    Please don't forget to click "Mark as Answer" on the post that helped you.

    Before printing, think about the environment, every 3000 A4 paper costs 1 tree.
Page 1 of 1 (2 items)