If your site is running on top Apache and you’re allowed to use .htaccess files, create a file called, ‘.htaccess’ and put the below (between the snips)in there:
Redirect Permanent /the/old/page.html http://heythatsyoursite.com/the/new/page.html
(all on one line, mind)
Save this file in your root public_html directory (the same place you put, say, a robots.txt file)
That way, the user will never see an error page, which is what a “404” is (an error smarty) Yes, a visitor will never know that they need to, “update their bookmarks”, but when’s the last time you did that? That’s what I thought…
If you want to get really techy, you can use the “RedirectMatch” thingy, like this:
RedirectMatch ^/the/old/directory http://heythatsyoursite.com/the/new/directory
If you have some sort of odd fetish and know regex’s like the back of your hand (hairy hands up!), you’ll know that the caret (^) means: “match the beginning of a line”.
We follow that with a directory. That means, any request to the directory will be redirected to a different directory.
Finally, notice that you can use ANY url for,“http://heythatsyoursite.com”. For instance, if you move your entire site, or, a portion of your site - say your knitting tips are REALLY taking off and deserve their own site, it’s really no problem now, init?