Other domain name pointing to my droplet IP address

Posted January 16, 2016 3.9k views


I found that a domain name (Domain A) is pointing to my droplet’s IP address. I only have one website hosted on the droplet.

  • Visitors to my website will load the same content via Domain A, instead of my domain.
  • Visit Domain A will load the full content of my website.

Currently, I am using .htaccess rewrite rule to redirect visitors to my domain. (

What else can we do about it? Why are they want to point domain name to other site?

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
1 answer

Do you own the domain that is redirected to your ip?
Whats inside your .htaccess file? exactly as explained in the link?
And if you have that htaccess file, whats the problem then if the domains are being redirected to the proper domain?

You can create a VHOST with a default server option, so that it gets redirected or gets on a page different than your site. What do you have in your VHOST right now?

  • I do not own the domain that’s redirected to my IP.

    Now, I am using this in my .htaccess file

    <IfModule mod_rewrite.c> 
    RewriteEngine On
    RewriteBase /
    RewriteCond %{HTTP_HOST} ^$ [NC]
    RewriteRule ^ - [G]

    I setup droplet using ServerPilot. I do not know where is the VHOST file.