Skip to main content

How to disable open site with dedicated ip as address?

Comments

2 comments

  • 24x7server
    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
  • cPanelMichael
    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.