Thread: 301 Redirects
View Single Post
  #17 (permalink)  
Old 04-01-2005, 05:50 PM
Conficio Conficio is offline
WebProWorld Veteran
 
Join Date: Jul 2003
Location: Mass, U.S.A.
Posts: 399
Conficio RepRank 0
Default

Quote:
Originally Posted by danielle v2.1b
A 301 redirect sits in the .htaccess file at your servers root level, it's real easy and you probably don't need to make yourself feel helpless by asking your webhost. Just add a line using notepad like:

Code:
redirect 301 /yourDefaultHomePage.htm  http://www.webAddyYouWantToRedirectTo.com
Then delete the rest of the site and if you want to be a real smarty and do a clean job of it put a 404 redirect on all your other pages that goes to your homepage (which in turn will redirect to the main URL). This way spiders or visitors entering below the root level get nicely transported around and give it a month or two and the whole thing will be but another chapter of net history.

Danielle
Hi Danielle,
I hate to do this, but I think the better solution would be this (for apache in the .htaccess in docroot or the general virtual host configuration).

redirectMatch 301 ^(.*)$ http://www.domain.com
or
redirectMatch permanent ^(.*)$ http://www.domain.com

Because for all the pages that you delete you are sending back a 404, instead of redirecting it to your new domain. This breaks any link that does not go to your home page.

Any decent search engine will forget about the redirected domain soon. And all the ones that can't handle it will continue to be redirected.

Good luck with your sites
K<o>
Reply With Quote