Re: How to force SSL for one domain?
Posted: Mon Jul 17, 2017 6:08 pm
thank you skurudo for the template solution.
Community Forum
https://forum.vestacp.com/
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]