Home › Forums › Other › Weird htaccess problem (https://www -> https://) › Reply To: Weird htaccess problem (https://www -> https://)
December 19, 2015 at 5:53 am
#236039
Alen
Participant
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 domain.com
and www.domain.com
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:
- listen on port 80 for both
www
andnon-www
and redirect tohttps
- listen on port 443
www
and redirect tonon-www
- listen on port 443 for
non-www
and return response
Hope that helps,
Alen