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 (.*) http://mydomain.com/$1 [R=301,L]

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

Adding this redirect will improve your SEO rank.

 

Do you like it?

Last Update: June 11, 2016  

June 11, 2016   185    Website    
Total 0 Votes:
0

Tell us how can we improve this post?

+ = Verify Human or Spambot ?

728x90-_0005_3-free-goods

Launch Websites with Pre-build codes from 2$

Build WordPress Websites with Drag & Drop Themes and Plugins

Reply