Blog

Saturday, 15 October 2016 17:01

How to fix - IP Canonicalization Test

In order to pass this test you must consider using a 301 re-write rule in your .htaccess file so that your site's IP points to your domain name.

If your site is running on apache server, you could put these lines in your .htaccess after RewriteEngine on line:

RewriteCond %{HTTP_HOST} ^XXX\.XXX\.XXX\.XXX

RewriteRule (.*) http://www.yourdomain.com/$1 [R=301,L]

Note that you must proper format the first line using your IP (replace X characters with proper digits from your IP) and the second line using your domain name.

Published in SEO