dsebao
4/3/2018 - 1:48 PM

Redirect http to https in apache via htaccess

RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{SERVER_NAME}/$1 [R,L]