Forum Moderators: open
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, that Google will recognize as a 404 error.
Thanks for any help!
Bill
You could include the HTML code of a normal 404 page. Like [webmasterworld.com ] for example
1.You can log them and fix them.
2.You can keep them on site
3.You look at where they were trying to go, and suggest a page
(they may have typed dlivery.asp instead of delivery.asp)
You really should tell them what happened and what they should/can do, rather than redirecting them automatically .Imagine if you entered a physical store and were suddenly wisked away to the shoe department