gary
1/2/2019 - 9:51 AM

HTACCESS - But not for localhost

HTACCESS - But not for localhost

Enable HTTPS but not for the localhost.

RewriteCond %{HTTP_HOST} !violet.loc
RewriteCond %{HTTPS}  !=on 
RewriteRule ^/?(.*) https://%{SERVER_NAME}/$1 [R,L]