Forum Moderators: open
My current custom 404.asp page was built originally to build dynamic static pages because Google won't index my long query string URL's. This has been working great and most of products are now indexed because of this custome script.
I currently use the following to redirect users to the home page in the event that the page doesn't exist or can't be generated dynamically from the database.
Response.Redirect "/"
What should I replace that line of code with to generate a page not found error with the correct header.
Thanks for any help!
Bill
<%
Response.Status = "404 Page not found"
%>
Hi you've reached my custom 404 page. We couldnt find what you asked for, however try looking here;<<link>>
Where everything after the code block ends is just normal HTML content
- Tony