Mobile app version of vmapp.org
Login or Join
Gail5422790

: How can I force Google to show my domain, not my IP? I submitted a site to Google using their tool. At the time I didn't actually have a domain for the site, so I just used the IP address.

@Gail5422790

Posted in: #Google #Url

I submitted a site to Google using their tool.

At the time I didn't actually have a domain for the site, so I just used the IP address.

Later I bought a domain, but Google still seem to be showing the version with the IP address before the domain one.

How do I get it to stop showing the IP address version?

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Gail5422790

1 Comments

Sorted by latest first Latest Oldest Best

 

@Pope3001725

Do a 301 redirect from the IP address to the domain. If you're using Apache you can place this snippet in a file called .htaccess placed inside your root web directory:

RewriteCond %{HTTP_HOST} ^121.12.12.123
RewriteRule (.*) www.mydomain.com/ [R=301,L]

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme