将HTTP重定向到HTTPS,但是在htaccess中有多个RewriteConds

时间:2018-10-26 21:49:16

标签: .htaccess https

我的.htaccess如下:

RewriteEngine on
RewriteOptions MaxRedirects=10
RewriteBase /
   #if file not exists
   RewriteCond %{REQUEST_FILENAME} !-f

   #if folder not exists
   RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule ^(.*)$ index.php?action=$1 [QSA]

如何修改它以将HTTP重定向到HTTPS? 谢谢!

0 个答案:

没有答案