2013-02-26 43 views

回答

0

您可以使用RewriteCondRewriteRule

RewriteEngine On 
RewriteCond %{HTTPS} !on 
RewriteCond %{QUERY_STRING} action=initLogon 
RewriteRule ^/?index.php$ https://lit.example.com:60558/index.php [R,L] 

此檢查它是否是一個普通的HTTP請求,看起來,如果查詢字符串確實action=initLogon。如果是,則會將客戶端重定向到新的HTTPS URL。