FRETE GRÁTIS em compras acima de R$189
← Voltar

Host your domain for free

Using GitHub Pages,, and also free SSL certificate.

After a long research, I couldn't find any tutorial explaining how to setup a GitHub Page using SSL at Hope the following is useful for you.

1. Setup your DNS at

Login to your account, and select the domain of your choice.

Under the DNS session, click "EDITAR ZONA".

Now add a new entry by filling the form with the following IP address:

Note that GitHub offers four different IP addresses. Just make sure your A record points to one of the following IP addresses for HTTPS to work:


After saving, our records should look like this:

We're done at Yay!

2. Setup a custom domain on GitHub

Inside your project, go to Settings > GitHub Pages session.

Fill the custom domain field with your domain. In our case

After saving, our page should be visible at:

As a good practice, we now want to make sure every user connects to our website via HTTPS. It is important as it helps with SEO (i.e, how you rank on Google searchs) and as Google Chrome will soon block non-https websites.

So let's do this!

3. Enforce HTTPS

So pay attention. If you your "Enforce HTTPS" checkbox is not clickable, like in the image below, all you need to do is be patient!

Seriously. As I was trying to setup our account I couldn’t understand why HTTPS was not working. It was just a matter of time. Wait. Oh, and refresh the page. After a while the checkbox should become clickable.

We're now done. You can try to access (just click) and you should notice that GitHub is automatically using the HTTPS protocol. Nice!

[EXTRA] Redirect www to non-www

It's pretty simple but adds a nice touch to our domain. We are branded as, so let's redirect everyone from www to its non-www version.

Back to, just add a CNAME record point to non-www:

We finally ended up with:

And you are actually done.