GitHub pages custom domain infinite redirect loop

10,943

Solution 1

Not sure if you have solved this yet, but I had a similar problem with redirects and 123-reg. I think what you are missing is another 'www' DNS Entry that points to the IP Address defined for DNS Entry '@'.

I wrote a quick blog post on it, with some images

Hope this helps.

Solution 2

I had a similar problem. In my case, my DNS was correct (Network Solutions), but I had left out the "www" in my CNAME file. I had "yoursite.com" instead of "www.yoursite.com". Once I added the "www", the infinite redirects were fixed.

Share:
10,943
Scotty
Author by

Scotty

Updated on June 14, 2022

Comments

  • Scotty
    Scotty almost 2 years

    I'm having an absolute nightmare trying to setup a custom TLD domain with github pages. For some reason http://www is redirecting to http:// and then back to http://www over and over in an infinite redirect loop.

    My settings with 123-reg are:

    DNS ENTRY   TYPE        TARGET/DESTINATION
    @           A           204.232.175.78        
    www         CNAME       scottyv.me.
    

    And i have a CNAME file setup correctly in my repo. Can someone please tell me what i'm doing wrong?