Classic ASP Blog - How to 404 redirect if blog article not found

ZorgTor

New Member
My server is configured to send all 404 errors to a custom 404 error page - this works fine for people misspelling my URL. If they didn't misspell the URL but instead the article wasn't found in the DB (rs.EOF), because it had possibly been deleted prior - what would be the best way to deal with it?At the moment, if a record/article cannot be found, it just shows a little message saying "Article cannot be found", it doesn't redirect anywhere. I'm now curious if this would cause any problems with SEO. I'm thinking maybe my app needs to tell Google that the URL doesn't work anymore, am I right?If there's no matching blog article in the DB, should I be redirecting the user to my 404 page? If so, how can I achieve this? Is it with a custom header status code? Or do I carry on showing my little message?
 
Back
Top