View Full Version : changing domain names
GeorgeB
June 9th, 2011, 19:57
I am thinking of changing my domain name where my forum currently resides at. However, I was wondering what happens to the url links of the current domain name that are in some of the posts?
Obviously if I change it, the links won't work if someone clicks on them.
Is there a mod rewrite or something that could be added so if someone click on a link in a post, it would redirect to the new url?
deeplist
June 9th, 2011, 21:36
You can place a .htaccess file in the root of your old domain to forward all requests to the new domain. That's what I did for http://deeplist.com when I decided it was time for a name change and registered http://deckerservices.com. Use the following code for your .htaccess file.
RewriteEngine on
RewriteCond %{REQUEST_URI} !/index.html$
RewriteRule $ http://newdomain.com [R=302,L]
GeorgeB
June 11th, 2011, 17:36
That worked, to redirect the site itself.
However, I was referring to links people will find in posts.
For instance, they go to a post and there is a link http://www.abc.com/service/liquor when they click on it, instead of getting an error, they be redirected to the new url http://www.def.com/service/liquor.
Is there a way to do that?
AboutWeb
June 11th, 2011, 19:39
Try this: redirect 301 / http://www.you.com/
Pingness
June 13th, 2011, 07:59
Also don't forget about google webmaster- that has a good feature for changing your domain.
Powered by vBulletin® Version 4.1.7 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.