https for PyLadies Dublin github page?

whykay 👩🏻‍💻🐈🏳️‍🌈 (she/her) - Jul 2 '20 - - Dev Community

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

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .