2017-04-06 110 views

回答

2

添加另一個RewriteCond指令:

RewriteCond %{HTTPS} off 
RewriteCond %{REQUEST_URI} !^/(home|user|info|myta|ajax\.php) 
RewriteRule^https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] 

或者一個規則:

RewriteCond %{HTTPS} off 
RewriteRule ^/?(?!home|user|info|myta|ajax\.php) https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] 
相關問題