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 .htacess file in your public_html folder:

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.

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

Brute Force Attack – What it is and How to Block It

Brute-force is a method of guessing your password by trying combinations of letters, numbers and...

What is pdftoppm and is it supported by Hostlantern?

Pdftoppm is a library that handles the conversion from Portable Document Format (PDF) files to...

How to clear your Internet browser’s cookies?

Sometimes you may need to clear the cookies saved by your browser. Basically the cookies...

Hacked Website

The most common reasons for a hacked (defaced) website include: - Outdated web application....

How to clean my files from malicious code?

If your website has been hacked and malicious content has been inserted into your files, you...