How to Redirect IP to Domain Name

To redirect the website IP to the website domain name you simply need to add this snippet in your .htaccess file, located in your host html directory:

RewriteEngine On
RewriteCond %{HTTP_HOST} ^XXX\.XXX\.XXX\.XXX
RewriteRule (.*)$1 [R=301,L]

Replace the “X” digits with the digits of your IP address.

Adding this redirect will improve your SEO rank.


Share it

Last Update: June 11, 2016  

June 11, 2016   238    Website    
Total 0 Votes:

Tell us how can we improve this post?

+ = Verify Human or Spambot ?