Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Dynamic content removal that is SE friendly

Dynamic content removal that is SE friendly

Scheduled Pinned Locked Moved ASP.NET
questioncsharpasp-nettutorialannouncement
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    Crom8484
    wrote on last edited by
    #1

    Hello all. I have an ASP.NET application that uses 3 or 4 actual "default.aspx" pages to dish out content for numerous URLs. For example "http://www.healthquotes.ca/default.aspx?Section=Common&Page=ContactUs" is one example of a URL that the root default.aspx page renders. Another example is "http://www.healthquotes.ca/Group/default.aspx?Section=Group&Page=Purchase", where the Group insurance default page then renders content for numerous group insurance-related content. My question is: how do I gracefully remove search engine entries for URLs that have been spidered but now point to content that has been deleted (it is no longer relevant, and the folder/files were removed). For example, if you search in Google for 'Blue Vision Blue Cross' there will be entries pointing to Press Release articles, but I have removed this section from the site. Obviously for traditional static sites just removing the page(s) did the trick. I can't return a 404 http header to the search engine spiders since this might result in the root aspx page being thought of as 'not found'. Right now I am just redirecting to a custom page not found page, which has been designated as the custom 404 page for the site. Any suggestions/input welcome!!! Example (the case is the Page querystring value): Case "PressOverview" 'myBody = Page.LoadControl("XXX") 'sPageTitle = "Press Releases" 'Response.Buffer = True 'Response.Status = "404 Not Found" 'myBody = Page.LoadControl("XXX") ' Response.End() Response.Redirect("http://www.healthquotes.ca/PageNotFound.htm", False)

    M 1 Reply Last reply
    0
    • C Crom8484

      Hello all. I have an ASP.NET application that uses 3 or 4 actual "default.aspx" pages to dish out content for numerous URLs. For example "http://www.healthquotes.ca/default.aspx?Section=Common&Page=ContactUs" is one example of a URL that the root default.aspx page renders. Another example is "http://www.healthquotes.ca/Group/default.aspx?Section=Group&Page=Purchase", where the Group insurance default page then renders content for numerous group insurance-related content. My question is: how do I gracefully remove search engine entries for URLs that have been spidered but now point to content that has been deleted (it is no longer relevant, and the folder/files were removed). For example, if you search in Google for 'Blue Vision Blue Cross' there will be entries pointing to Press Release articles, but I have removed this section from the site. Obviously for traditional static sites just removing the page(s) did the trick. I can't return a 404 http header to the search engine spiders since this might result in the root aspx page being thought of as 'not found'. Right now I am just redirecting to a custom page not found page, which has been designated as the custom 404 page for the site. Any suggestions/input welcome!!! Example (the case is the Page querystring value): Case "PressOverview" 'myBody = Page.LoadControl("XXX") 'sPageTitle = "Press Releases" 'Response.Buffer = True 'Response.Status = "404 Not Found" 'myBody = Page.LoadControl("XXX") ' Response.End() Response.Redirect("http://www.healthquotes.ca/PageNotFound.htm", False)

      M Offline
      M Offline
      minhpc_bk
      wrote on last edited by
      #2

      Hi there, IMO, the old URLs of your site are still persisted in the cache of the search engine, so as result you will see these URLS when you do a search. For more information, you can see http://www.google.com/webmasters/[^] So IMHO in this case, you either display your own custom error page or automatically rewrite the URL to the new page of it.

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups