0
votes

I am using GitHub Pages to host a static website and ALMOST everything is working. Below is my configuration:

GitHub Pages:

  • Source: "gh-pages branch"
  • index.html in root of gh-pages branch
  • CNAME file in root of gh-pages branch with "example.com" and "www.example.com" as the contents (each on a separate line)
  • Settings -> Custom Domain: "example.com"
  • HTTPS Enabled

Google Domains DNS Settings:

  • Custom Resource Records:

    • Name:"@", Type:"A", Data:"185.199.108.153, 185.199.109.153, 185.199.110.153, 185.199.111.153"
    • Name:"www", Type:"CNAME", Data:"myusername.github.io"

Results:

I'm new to this game, so any help would be greatly appreciated.

1

1 Answers

0
votes

For anyone who has read and spent any time thinking about this, I apologize. I'm still not sure what was going on with Chrome on my PC, but after clearing my cookies and browsing history, typing in "www.example.com" correctly redirects me to "https://example.com".