Apache Redirect HTTP to HTTPS using mod_rewrite
In short,
RewriteEngine On RewriteCond %{HTTPS} off RewriteRule (.*) https://%{SERVER_NAME}/$1 [R,L]
Apache Redirect HTTP to HTTPS using mod_rewrite
In short,
RewriteEngine On RewriteCond %{HTTPS} off RewriteRule (.*) https://%{SERVER_NAME}/$1 [R,L]