2010-12-09 127 views

回答

4
RewriteEngine On 
RewriteCond %{HTTPS} off 
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} 

這應該這樣做。

1
RewriteEngine On 
RewriteCond %{SERVER_PORT} 80 
RewriteRule ^(.*)$ https://www.example.com/$1 [R,L] 

下一次你想知道如何重定向一些時間搜索關鍵字:mod_rewrite的