dj-kenpo Posted July 27, 2007 Share Posted July 27, 2007 is it possible posible via a header to detect if the url (or $_get["title"] in my case) has underscores and if so send to the 404 page? my old urls had underscore, the new ones use more standard dashes, and the bots are all still roaming the old pages (which don't work and have errors) so I'd like to tell them to not go there I guess via 404.. Quote Link to comment Share on other sites More sharing options...
Danltn Posted July 27, 2007 Share Posted July 27, 2007 RewriteEngine On RewriteBase / RewriteRule _ /404document.php [QSA,L] ErrorDocument 404 /404document.php Quote Link to comment Share on other sites More sharing options...
per1os Posted July 27, 2007 Share Posted July 27, 2007 is it possible posible via a header to detect if the url (or $_get["title"] in my case) has underscores and if so send to the 404 page? my old urls had underscore, the new ones use more standard dashes, and the bots are all still roaming the old pages (which don't work and have errors) so I'd like to tell them to not go there I guess via 404.. Sure, but a better thing to do would 301 the bots to the new page. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.