Home
/
Working with the .htaccess and Redirects
/
I have changed my domain and want to forward visitors to the new one

I have changed my domain and want to forward visitors to the new one

To ensure your new primary domain name is used, you should first park the previous primary one as shown in this tutorial and then redirect the old domain name to your new one by inserting this code to the .htaccess file in your public_html folder (you can modify/create that file via File Manager in cPanel):

Options +FollowSymLinks
RewriteEngine on
RewriteRule (.*) http://www.newdomain.com/$1 [R=301,L]

You should replace www.newdomain.com in the above code with your actual domain name.

In addition to the redirect we would suggest that you contact every backlinking site to modify their backlink to point to your new domain.

Share This Article