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:
- typing "example.com" routes me to "https://example.com" and all is well
- typing "https://www.example.com" routes me to "https://example.com" and all is well
- typing "www.example.com" routes me to "https://example.com/dist/dist/dist/dist/dist/dist/dist/dist/dist/dist/" and yields a 404 Error from GitHub Status
I'm new to this game, so any help would be greatly appreciated.