2017-07-05 48 views

回答

0

RewriteRule與域名不符。你將需要使用這樣的RewriteCond

RewriteCond %{HTTP_HOST} ^(?:www\.)?example\.com$ [NC] 
RewriteCond %{HTTPS} off 
RewriteRule^https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301,NE] 
+1

是的,工作,感謝很多@anubhava –