• Howdy! Welcome to our community of more than 130.000 members devoted to web hosting. This is a great place to get special offers from web hosts and post your own requests or ads. To start posting sign up here. Cheers! /Peo, FreeWebSpace.net
managed wordpress hosting

changing domain names

GeorgeB

Chairman/CEO TMCG
NLC
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?
 
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.

Code:
RewriteEngine on
RewriteCond %{REQUEST_URI} !/index.html$
RewriteRule $ http://newdomain.com [R=302,L]
 
Back
Top