Moz Q&A is closed.
After more than 13 years, and tens of thousands of questions, Moz Q&A closed on 12th December 2024. Whilst we’re not completely removing the content - many posts will still be possible to view - we have locked both new posts and new replies. More details here.
Unsolved IP Address Indexed on Google along with Domain
-
My website is showing/indexed on Google search results twice, with IP address and domain name
I'm using AWS LightSail
I don't know how to fix this, beside I'm afraid this duplicate can harm my website -
@mupetra Having duplicate content indexed on search engines can harm your website's SEO. It can confuse search engines and users, negatively impacting your rankings.
There are several ways to fix this issue:- Redirect your IP address to your domain name using a 301 redirect. It tells search engines that your IP address is a duplicate of your domain name and to only index your domain name.
- Use a canonical tag on your IP address page, which tells search engines that your domain name is the preferred version of the page. You can add this to the head section of your HTML code.
- Use the robots.txt file to disallow search engines from indexing your IP address. You can do this by adding the following line to your robots.txt file:
User-agent: * Disallow: /
It will disallow search engines from indexing any page on your IP address. - Contact AWS LightSail support for further assistance in resolving this issue.
Got a burning SEO question?
Subscribe to Moz Pro to gain full access to Q&A, answer questions, and ask your own.
Explore more categories
-
Chat with the community about the Moz tools.
-
Discuss the SEO process with fellow marketers
-
Discuss industry events, jobs, and news!
-
Chat about tactics outside of SEO
-
Dive into research and trends in the search industry.
-
Support
Connect on product support and feature requests.
-