title: GitHub Pages and Google Domain Setup - Have to type https:// before www version of domain
body: <p>I am using GitHub Pages to host a static website and ALMOST everything is working.  Below is my configuration:</p>
  
  <p><strong>GitHub Pages:</strong></p>
  
  <ul>
  <li>Source: "gh-pages branch"</li>
  <li>index.html in root of gh-pages branch</li>
  <li>CNAME file in root of gh-pages branch with "example.com" and "www.example.com" as the contents (each on a separate line)</li>
  <li>Settings -> Custom Domain: "example.com"</li>
  <li>HTTPS Enabled</li>
  </ul>
  
  <p><strong>Google Domains DNS Settings:</strong></p>
  
  <ul>
  <li><p>Custom Resource Records:</p>
  
  <ul>
  <li>Name:"@", Type:"A", Data:"185.199.108.153, 185.199.109.153, 185.199.110.153, 185.199.111.153"</li>
  <li>Name:"www", Type:"CNAME", Data:"myusername.github.io"</li>
  </ul></li>
  </ul>
  
  <p><strong>Results:</strong></p>
  
  <ul>
  <li>typing "example.com" routes me to "<a href="https://example.com" rel="nofollow noreferrer">https://example.com</a>" and all is well</li>
  <li>typing "<a href="https://www.example.com" rel="nofollow noreferrer">https://www.example.com</a>" routes me to "<a href="https://example.com" rel="nofollow noreferrer">https://example.com</a>" and all is well</li>
  <li>typing "www.example.com" routes me to "<a href="https://example.com/dist/dist/dist/dist/dist/dist/dist/dist/dist/dist/" rel="nofollow noreferrer">https://example.com/dist/dist/dist/dist/dist/dist/dist/dist/dist/dist/</a>" and yields a 404 Error from GitHub Status</li>
  </ul>
  
  <p>I'm new to this game, so any help would be greatly appreciated.</p>