DEV Community

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:" &&'') > -1) {
            window.location.protocol = "https";
Enter fullscreen mode Exit fullscreen mode

Discussion (2)

moopet profile image
Ben Sinclair

Hmm, that's a bit of a pain, isn't it? I know it doesn't matter much in the grand scheme, but it'll break the back button in browsers, since "back" will take you to the redirect again.

Your certificate's good, everything else is good, I wonder what's causing GitHub to be not so good? Maybe it's time to raise a support ticket!

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

It is a pain, but from what I'm told that Cloudflare's free https is not playing with github pages. Anyway, this is a (hopefully) temporary landing page. I would like the PyLadies Dublin members & friends to come together and build a site together, but I might just go and spend a couple of days building one with Flask or something (and try not to end up with Django again, which is always my go-to, for some reason). This could even be a future sprint?