So I had github pages set up with a custom domain without problem on namecheap a day ago. Then I tried switching to Https via github\'s newly added support for https on page
More info here: https://support.cloudflare.com/hc/en-us/articles/115000219871
The two typical causes of redirect loop errors are: