Redirect http to https
In order to redirect http to https in Apache it's enough to add these lines to .htaccess file in the web root:
RewriteEngine On RewriteCond %{HTTPS} !on RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
In order to redirect http to https in Apache it's enough to add these lines to .htaccess file in the web root:
RewriteEngine On RewriteCond %{HTTPS} !on RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}