emlog利用.htaccess实现http强制跳转到https

在.htaccess添加下面代码就可以


RewriteEngine On

RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]