2
我以爲我能得到這個使用下列步驟完成的,但它的循環......重定向一個域的所有入站流量不帶www的HTTPS
RewriteEngine On
RewriteCond %{HTTP_HOST} ^example.com [NC,OR]
RewriteCond %{HTTP_HOST} ^www.example.com [NC]
RewriteCond %{HTTPS_HOST} ^www.example.com [NC]
RewriteRule ^(.*)$ https://example.com/$1 [L,R=301]
什麼我需要做,以確保所有實例的域去https://example.com沒有循環?
這也推動了非HTTPS,非www到HTTPS? –
@DavidBorough不,它沒有,我已經編輯了非https的帳戶的答案。 –
感謝您的幫助。 –