Gh-pages dns 400 bad request / intermittent website

I created a personal github page with gh page pages. I followed the instructions from here to configure my DNS information using namecheap

Custom Domain for GitHub Project Pages

Here's what the DNS settings look like

https://i.imgur.com/hp3S6Hn.png

With one addition: under the www subdomain, I have a redirect URL to mydomain.com (before I did this, typing “www.mydomain.com” in the browser would not redirect to mydomain.com)

In the gh-pages branch of my github project, the CNAME file has one line: mydomain.com

It was 48 hours or so, and sometimes I can connect to mydomain.com, and sometimes I get a bad http 400 request. DNS changes should have been propagated by now. Any help would be greatly appreciated.

+4
source share
1 answer

Your CNAME "Host" in Namecheap should be www, not @. That's what mine looks like

hosts

I also have another CNAME at the end that I found out about here:

http://abdelraoof.com/blog/2014/09/20/configuring-namecheap-dns-for-github/

it should redirect from www.yoursite.com to your .com website

I deleted the default URL Redirect Record type because when I started my site I started getting the "400 redirect loop" error, deleting it to fix it.

+10
source

All Articles