: 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.
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?
More posts by @Gail5422790
1 Comments
Sorted by latest first Latest Oldest Best
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]
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.