We are happy to announce that Vesta is back under active development as of 25 February 2024. We are working on v1 candidate and expect to engage more with the community over the coming months. We are committed to open source, and we encourage contributors to help us build the future of Vesta.
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.