GitHub Pages https/www Redirect

What worked for me:

  • Change your custom domain to be prefixed with www., like this:
    form

  • Save the settings and wait until www.example.com resolves and works.

  • Remove the www. prefix and save again.

  • Wait for browser and DNS caches to invalidate.

  • All combinations should lead to https://example.com/ and no SSL error should appear.

Leave a Comment