: GitHub hosted page shows github.io URL in search results I have a website hosted using GitHub Pages, and have set up a custom domain according to the GitHub documentation (https://help.github.com/articles/using-a-custom-domain-
I have a website hosted using GitHub Pages, and have set up a custom domain according to the GitHub documentation (https://help.github.com/articles/using-a-custom-domain-with-github-pages/)
As a result, the website is accessible via two different URLs:
www.example.com example.github.io
The former is considered canonical, and the latter immediately redirects to the former. However, when searching for my website via Google, the search results display the latter (https://example.github.io) URL -- although clicking into this result immediately redirects to www.example.com.
How can I inform Google that the canonical URL of this page is www.example.com?
More posts by @Kaufman445
1 Comments
Sorted by latest first Latest Oldest Best
If the old sub domain now redirects to a new domain then you have already told Google the canonical version by doing so.
Google often takes several days and even weeks to drop a previous ranked site. The time can vary from site to site, from niche to niche. So, seeing both versions of the site is common and will resolve itself in time, Google does this intentionally to avoid webmasters losing sites from a temporary error with their site.
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.