问题原文
原帖链接 · The Nightman · CC BY-SA 4.0
I have hosted a site on github and encounter the following error in the Google Search Console URL inspection section.
The custom domain I'm using was purchased through Google Domains. How can I enable google indexing of my site?
Below is information about my DNS setup that might be helpful.
Below is the updated DNS setup.
已采纳解答
原帖链接 · Stephen Ostermiller · CC BY-SA 4.0
Of your DNS records, only one of them doing you any good. Keep this one for sure:
CNAME www.example.com
your TXT DNS record is not relevant for directing visitors to your site. It looks like it is used for HTTPS certificate generation. I wouldn't touch it either.
Your other three records are not good and should be removed:
HTTPS example.com--HTTPSDNS records are only in a draft specification and should not be used. You should remove this record.CNAME https://.example.com-- CNAME records should never containhttps://as part of the host name. You should remove this record.CNAME https://www.example.com-- CNAME records should never containhttps://as part of the host name. You should remove this record.
You need to add the following record:
Type:
AHostname:
example.com(use your real domain name, withoutwww.and withouthttps://)Values (These come from Github's documentation):
185.199.108.153 185.199.109.153 185.199.110.153 185.199.111.153
See GitHub's documentation about the apex of the domain for details
摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。
