回答

0

您可以在公用文件夾的.htaccess文件中執行此操作。試着這樣做:

# Force SSL 
RewriteCond %{HTTPS} !=on 
RewriteRule^https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] 
+0

我已經嘗試過這一點,並沒有幫助。謝謝Genc –

0
RewriteEngine On 

# Redirect to https 
RewriteCond %{HTTP:X-Forwarded-Proto} !https 
RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R=301,L] 

這個工作對我來說...

相關問題