| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
|
|
#1 (permalink) |
|
mingin dawg baitch
|
Mod rewrite
Is it a good idea to map old urls to new upon a website update? Or am I best to let search engines find a custom 404 page with links to the rest of the site. The structure of the site im working on has completely changed. |
|
|
|
|
|
#2 (permalink) |
|
vague™
Join Date: Mar 2004
Location: Glasgow
Posts: 5,595
|
You can use mod_rewrite to always direct people back to the site root if the url they requested wasn't found, rather than use 404's (e.g. http://www.teetonic.com/thisisarathersillyexampleurl). That's what we do on TT and it works very well - it also means we don't have to worry as much about mapping old URL's to new ones. |
|
|
|
#3 (permalink) |
|
Registered User
Join Date: Feb 2006
Location: Wales
Posts: 2
|
Probably best to use mod_rewrite to redirect the visitor to the new page and let the search engines know that the page has been permanently moved with a proper HTTP "permanently moved" redirection (aka 301 error). BTW cam, your teetonic.com mod_rewrite rule doesn't seem to work if a file extension is added to the url... You then just get a 404 error. Al. |
|
|
|
#4 (permalink) | |
|
vague™
Join Date: Mar 2004
Location: Glasgow
Posts: 5,595
|
Quote:
Yep, but there wasn't any file extensions beforehand either - we've always used directory-style url's, so that's not an issue |
|
|
|
|
#8 (permalink) | |
|
mingin dawg baitch
|
Quote:
Great for human visitors - but do the robots get the hump? i.e. do they suspect they may be being spammed? I could redirect back to the site root very easily, im just wondering if throwing a redirect rather than a 404 is the less favourable for the search engines, considering that they will probably remove 404's from the SERPS after a while. |
|
|
|
|
#9 (permalink) | |
|
mingin dawg baitch
|
http://gsitecrawler.com/articles/error-404-200.asp Worth a read. Cam I'd make sure you are adding a status code (404) to your custom error page otherwise Quote:
|
|
|
![]() |