2012-06-14 53 views

回答

4

簡單地說:

RewriteEngine On 
# Rewrite all non-HTTPS requests to HTTPS. 
RewriteCond %{HTTPS} off 
RewriteRule^https://%{HTTP_HOST}%{REQUEST_URI} [R,L] 
+0

我已經把它添加到我的htaccess的文件,但沒有任何反應。 –

+1

添加'R'國旗! – undone

+0

@Death你提出了一個有效的觀點。 –