Google Search Console: URL is not on Google (page with redirect)
I have just created a personal website which I host as github page and recently hooked it up with a custom domain. (In this post I changed the actual URLs to webmasters-example.com and webmasters-example.github.io)
I just checked my domain webmasters-example.com with the Google search console, and the console says that,
This page is not in the index, but not because of an error. See the
details below to learn why it wasn't indexed.
And in the box below it says that the URL is being redirected, and because of that the site is not indexed.
I followed Namecheap's official guide on linking the domain with github. Is there a better way to do this? How can I get Google index my page?
Google won't index pages which redirect. Why would they index a page which simply redirects to another page that's already in the index?
If you want your domain to be the "main" URL for the page, then you need to change the A records (and remove the CNAME record) as per GitHub's instructions (the Namecheap instructions you followed appear to be for setting subdomains, at least based on GitHub's instructions).
https://help.github.com/en/articles/using-a-custom-domain-with-github-pages
That way your domain won't be seen as a redirect by Google and it will appear in the index. Then you just have to make sure the settings are correct in GitHub for it to be the canonical source of the pages (otherwise you run the risk of it being seen as duplicate content even though it is in actual fact simply the same content merely with a different URL).

Comments
Post a Comment