Hi all,
Our web site was developed in ASP.Net, www.cardsdirect.com We had set up custom errors in the web.config and a 404 page to redirect for "Page Not Found" errors. Our main products page uses QString params to identify the actual Product ID. When a product has been discontinued and that page is requested we intentionally throw a 404 web exception from the code such as:
I just released this today and noticed in the log files the httpcode being returned is a 302 for the Page not found 404 error page??? I checked the log files and sure enough there is only 302 and not a 404. I am concerned this is a bad thing since it is my understanding bots, such as Google, do not like the use of temporary 302 redirects. I am assuming the web.config is taking control of the 404 and causing the 302 temporary redirect to the 404 Error Page over IIS. My concern is why wouldnt it return the 404? How will bots evalaute this? We have very good rankings right now and I dont want to see them trashed over this. Just another side note the Error page has "NOINDEX","NOFOLLOW" tags included, if that makes a difference.Code:throw new HttpException(404,"Page not found");
Thanks,
DMC
Submit Your Article
Forum Rules

Reply With Quote
