我想修改我的.htacess文件來強制https,但因爲我已經有一些規則,我似乎打破了它。任何人都可以幫助建議我嗎?htaccess文件重定向到強制https
DirectoryIndex index.php
RewriteEngine on
RewriteCond $1 !^(index\.php| (.*)\.swf|forums|images|css|downloads|jquery|js|robots\.txt|favicon\.ico)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ ./index.php?$1 [L,QSA]
可能重複[htaccess重定向到https:// www](https://stackoverflow.com/questions/13977851/htaccess-redirect-to-https-www) – localheinz