How do I set up URL redirect for a domain?

You can 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]

Replace www.newdomain.com in the above code with your old domain name.

Was this answer helpful?

 Print this Article

Also Read

e-dimensionz Nameservers (NS)

Please change your nameservers to the correct e-dimensionz nameservers. Nameserver 1:...

Updating DNS at StarGate.com

This demo assumes you have a domain name registered through StarGate.com, and starts from the...

Modify Nameservers from Client Area

You can change the nameservers of your registered domain from client area itself. For that, you...

PHP and HTML redirects

If you do not wish to use the .htaccess file to redirect your visitors, you can use another...

Updating DNS at OpenSRS

This demo assumes you have a domain name registered through OpenSRS, and starts from this login...