This is works for Apache 2.2For Apache 2.4 need this config:RewriteEngine OnRewriteCond %{ENV:HTTPS} !=onRewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
This is works for Apache 2.2
ОтветитьУдалитьFor Apache 2.4 need this config:
RewriteEngine On
RewriteCond %{ENV:HTTPS} !=on
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}