404 Error Redirects

  • Thread starter Thread starter VK
  • Start date Start date
V

VK

Hi,

We built a new site using ASP.NET.

Our old site used mainly static pages, .shtml pages.

The issue arises when user searches and results with .shtml pages are
still be displayed by search engines. I have added some code in
webconfig file to redirect error, also changed in IIS Custom error(404)
properties to default to an .aspx custom error page.

The strange part is if it is .shtml page it comes up with "Object not
found" but if it is an aspx extension it redirects correctly to custom
made error page.
http://<url>/showpage.shtml ERROR
http://<url>/showpage.aspx Redirects to error page

We are losing some of our customers - any help would be appreciated.

Many thanks.
 
Back
Top