P
Pat Carden
I'm trying to provide a better user experience by redirecting my users to a
"Page Not Found" page, using a Custom Errors directive in Web.Config.
The problem is I need to return a 404 error code to the browser (or spider)
before redirecting. Now, the system is reporting a status code of 302 on
the original page and a 200 status code on the error page.
I would like to use Google Sitemaps and they require this, plus I have a
linkchecking service that is unable to detect the redirect.
Can someone tell me how to accomplish this? I tried with the following code
in the "Page Not Found" page, but it didn't yield the desired result.
Thanks a lot!
Pat
"Page Not Found" page, using a Custom Errors directive in Web.Config.
The problem is I need to return a 404 error code to the browser (or spider)
before redirecting. Now, the system is reporting a status code of 302 on
the original page and a 200 status code on the error page.
I would like to use Google Sitemaps and they require this, plus I have a
linkchecking service that is unable to detect the redirect.
Can someone tell me how to accomplish this? I tried with the following code
in the "Page Not Found" page, but it didn't yield the desired result.
Thanks a lot!
Pat