http 自动跳转https .htaccess 文件设置

<IfModule mod_rewrite.c>
  Options +FollowSymlinks -Multiviews
  RewriteEngine On

  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteRule ^(.*)$ index.php?/$1 [QSA,PT,L]
  
  RewriteCond %{SERVER_PORT} !^443$
  RewriteCond %{REQUEST_URI} !^/tz.php
  RewriteRule (.*) https://%{SERVER_NAME}/$1 [R]
</IfModule>

猜你喜欢

转载自blog.csdn.net/weixin_41647577/article/details/88599784