嗨我已經將下面的代碼添加到.ht訪問,但我怎麼能添加另一個頁面?如login.php在某些頁面上直接http到https?
如果用戶輸入www。他們會得到一個「不可信的連接」,因爲SSL只有在沒有www的情況下才有效。我怎麼能解決這個問題?
感謝
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteCond %{REQUEST_URI} /login.html
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
您將在serverfault.com上獲得更好的幫助。 – erickson 2009-11-17 17:51:27