Mobile app version of vmapp.org
Login or Join
Kaufman445

: 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-

@Kaufman445

Posted in: #Domains #Github #GoogleIndex

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?

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Kaufman445

1 Comments

Sorted by latest first Latest Oldest Best

 

@Turnbaugh106

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.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme