Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
任何人都可以帮忙。我需要编写一个重定向规则:
将所有 HTTPS 流量重定向回 HTTP,除非其中包含 URL /administrator。
RewriteEngine on RewriteCond %{REQUEST_URI} !^administrator/ RewriteRule .? http://www.site2.com%{REQUEST_URI} [R=301,L]
谢谢,
您需要包含一个条件来检查它是否是 HTTPS:
RewriteEngine on RewriteCond %{HTTPS} on RewriteCond %{REQUEST_URI} !^administrator/ RewriteRule .? http://www.site2.com%{REQUEST_URI} [R=301,L]