Redirect IP request to Domain URL – Test and Fix IP Canonical Issue

For those who host your web site on a cloud or a devoted server, you’ll get a devoted IP handle from the internet hosting supplier.

Which means that your web site is accessible by area and IP, each of which may trigger duplicate content material if the search engine indexes each URL and IP. Duplicate content material isn’t good for web optimization, and that is one thing you must repair instantly in case you come throughout it.

On this article, I’ll speak about testing and troubleshooting canonical IP points in Nginx And Apache webServer.

Check IP canonicalization

You may manually entry your IP handle to verify whether it is redirected or you should utilize the next on-line instruments to check it.

  • SEMrush
  • SEOMator
  • Woorank

Repair IP Canonical problem in Nginx

  • Login to your Nginx server.
  • Again up nginx.conf file
  • Create a brand new server block as beneath
server { 
server_name 45.55.20.xx; 
return 301 http://yourdomain.com; 
}
  • It is vitally clear that you must change the IP handle and area title with yours.
  • Restart Nginx and all is nicely now.

Repair IP Canonical problem in Apache

  • Log in to your Apache server
  • Again up httpd.conf file
  • Guarantee mod_rewrite is enabled
LoadModule rewrite_module modules/mod_rewrite.so
  • Add the next rewrite rule
RewriteEngine on 
RewriteCond %{HTTP_HOST} ^128.199.100.xxx 
RewriteRule (.*) http://yourdomain.com/$1 [R=301,L]

Ensure to alter 128.199.100.xxx to your precise IP handle.

That is considered one of a whole lot of web optimization metrics, and if you wish to know extra, you must analyze your web site for web optimization.

Leave a Comment

porno izle altyazılı porno porno