You will need a personal account on each of the following:
- Register a domain on Gandi.net.
;; A Records example.com. 1 IN A 188.8.131.52 example.com. 1 IN A 184.108.40.206 example.com. 1 IN A 220.127.116.11 example.com. 1 IN A 18.104.22.168
example.com with your domain.
Note: Make sure you have a ‘.’ at the end of each record:
;; CNAME Records www.example.com. 1 IN CNAME username.github.io.
Note: Replace username with your GitHub username.
- Create a new public repository on GitHub under your personal account. I called mine
personal-website. You can call yours whatever you want to.
- Create an
index.htmlfile on the master branch of your new repository:
<!DOCTYPE HTML> <html> <body> <h1>Hello, World!</h1> </body> </html>
- Enable GitHub Pages for your repository: Settings > GitHub Pages > Source > Master Branch.
- Configure GitHub Pages to use your custom domain: Settings > GitHub Pages > Custom Domain >
Note: Make sure you include
www. in the domain name.
This will create a CNAME record in your repository the value you entered.
Use the following steps to enable
ssl to secure your website by encrypting all traffic over
- Add your domain on Cloudlfare.
- Choose a free plan.
- Follow the instructions to change your nameserver on Gandi.net to Cloudflare: Domain > Nameserver
- Enable “Always Use HTTPS”: Crypto > Always Use HTTPS
Once configured your domain will automatically be redirected over
At this point, your DNS will transfer to Cloudflare and traffic will be redirected.
Your website will be available at your domain once your DNS changes have been propagated. This can take a few minutes or a few hours.