https for PyLadies Dublin github page?

whykay

whykay πŸ‘©πŸ»β€πŸ’»πŸˆπŸ³οΈβ€πŸŒˆ (she/her)

Posted on July 2, 2020

https for PyLadies Dublin github page?

It's all working except one thing. Lynn Root (who has been so awesome helping me out) pointed out that I should enable "Enforce HTTPS” field in the github settings that’s right below the adding of β€œCustom Domain”.

I went to have a look and found that I was unable to, as it said unavailable for your site because your domain is not properly configured to support HTTPS. Which was kinda weird.

Long story short... Lynn suggested a workaround by adding the following in <head> section of my index.html and it worked.

<script>if (window.location.protocol != "https:" && window.location.host.indexOf('pyladies.com') > -1) {
            window.location.protocol = "https";
          }</script>
Enter fullscreen mode Exit fullscreen mode

πŸ’– πŸ’ͺ πŸ™… 🚩

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related