How to disable open site with dedicated ip as address?
Some my site using dedicated ip, for example 1.2.3.4
currently i can open the site by typing dedicated ip redirect to clientdomain.com ?
-
Hello :), Try to update following code in your domain .htaccess file to redirect your IP to domain URL. RewriteEngine On RewriteBase / RewriteCond %{HTTP_HOST} ^1\.2\.3\.4$ RewriteRule ^(.*)$ http://www.clientdomain.com/$1 [L,R=301]0 -
Hello :) Yes, the previous post is accurate if you want a redirect to your domain name instead of adding a new VirtualHost for the IP address and seeing the default cPanel pages. Thank you. 0
Please sign in to leave a comment.
Comments
2 comments