How to force SSL for one domain?
-
- Posts: 3
- Joined: Wed Jul 12, 2017 7:13 pm
Re: How to force SSL for one domain?
thank you skurudo for the template solution.
Re: How to force SSL for one domain?
You're welcome! ;-)
Re: How to force SSL for one domain?
I believe a %{HTTPS} variable is missing on the system.
If I use the following (it works on any other server):
Here it redirects even after it reaches https://anything
This would be useful for Vesta team.
If I use the following (it works on any other server):
Code: Select all
Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTPS} off [OR]
RewriteCond %{HTTP_HOST} ^www\. [NC]
RewriteCond %{HTTP_HOST} ^(?:www\.)?(.+)$ [NC]
RewriteRule ^ https://%1%{REQUEST_URI} [L,NE,R=301]
This would be useful for Vesta team.