• From an SEO point of view, canonicalization is very important. When I run my website through an SEOsitecheckup scan (https://seositecheckup.com/) it informs me that My website has not resolved an IP cannonicalization issue. the site (and other sites) also informs me that there is “an easy way to fix this”.

    “The best way to set up a 301 redirect is to edit the .htaccess file found in the root directory. The code to input in the .htaccess file when setting up a 301 redirect is the following:”

    RewriteEngine On
    RewriteCond %{HTTP_HOST} ^xxx\.xxx\.xxx\.xxx [nc,or]
    RewriteCond %{HTTP_HOST} ^example\.com [nc]
    RewriteRule (.*) https://www.example.com/$1 [R=301,L]

    “All you have to do is replace the xxx with the IP address and example with the domain name. This method of redirecting as a solution for IP Canonicalization is simple yet very effective when applied properly”.

    Unfortunately for me this was not as easy as described above. when I did it their way, i got internal server errors coming up, instead of my website. Some f you might know that the default htaccess file looks different on wordpress. I really don’t know what I can do to fix this issue. any help at all please?

  • The topic ‘IP Canonicalization – htaccess DIY issues’ is closed to new replies.