我希望所有人都強制重定向到https,但不在特定頁面上當前我有這個.htaccess文件:如何將所有重定向到ssl和index.php但不是ssl,但重定向到特定頁面上的index.php
RewriteEngine on
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php?path=$1 [NC,L,QSA]
我希望所有重定向到HTTPS,但強制HTTP特定頁面上: /exchage
什麼代碼,我需要把我的.htaccess文件來實現這個功能?謝謝。
交換頁面仍然轉到https。 :( –
我剛剛更新了..你能再試一次嗎? –
我試了一遍,但問題仍然存在:( –