Forums

https:// + [bare domain] not redirecting to https:// + [www sub-domain]?

I'm finding a way to make specifically https:// + [bare domain] successfully redirects to https:// + [www sub-domain].

<br>

I have a Pythonanywhere website at www.jurutera.io. Entering these domains in the URL bar correctly redirects to https://www.jurutera.io/:

  1. jurutera.io
  2. www.jurutera.io
  3. http://jurutera.io
  4. http://www.jurutera.io

<br>

But going to https://jurutera.io does not. Does anyone know if I'm missing anything? Why does HTTPS + bare domain not work?

Note that since the above 4 domain variations work, I believe I have correctly set up my bare/naked domain redirect on NameCheap and https certificate using the free Let's Encrypt certificate.

NakedSSL is known to work.

@fjl Tried that out and now it's working! Thank you.

I'm still wondering why that's needed though, but at the moment I'll accept the way it needs to be done.

Glad to hear that you made it work!