Want to host with www.yourdomainname.com? Here’s what you’ll need to do.
Full documentation is available here.
- Configure the gh-pages branch
- Create a
CNAME
file - Add
yourdomainname.com
to that file
- Create a
- Configrue your domain name’s DNS
- Add a CNAME for www to point to
yourusername.github.io
- If you want to point the root domainname.com to gh-pages, set the
A
record to192.30.252.153
- You can also set a second
A
recored to192.30.252.154
- When you’re done it should look like:
Record Type Value @ A 192.30.252.153 @ A 192.30.252.154 WWW CNAME your_github_username.github.io - Add a CNAME for www to point to