thinkphp .htacess 设置重定向到HTTPS

ADMIN thinkphp , htacess , https , ssl , 301 2017-03-02 4255 次浏览
编辑器打开.htaccess文件,写入如下规则:<IfModule mod_rewrite.c>   Options +FollowSymlinks -Multiviews   RewriteEngine On   RewriteEngine on   RewriteCond %{SERVER_PORT} !^443$   RewriteRule (.*) https://%{SERVER_NAME}/$1 [R]       RewriteCond %{REQUEST_FILENAME} !- [...]