The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Other Weird htaccess problem (https://www -> https://) Reply To: Weird htaccess problem (https://www -> https://)



If you’re performing server redirects, last redirect will be the one that sends response to the browser. If your certificate is valid everything should work.

How did you go about registering for SSL? I’ve used Let’s Encrypt and had to generate one my self via SSH. I had to generate a certificate for both and could this be your issue. Try making a redirect to the url you know certificate works.

Here’s my Nginx config and the flow is:

  1. listen on port 80 for both www and non-www and redirect to https
  2. listen on port 443 www and redirect to non-www
  3. listen on port 443 for non-www and return response

Hope that helps,