【发布时间】:2016-07-18 06:09:35
【问题描述】:
如何为非xml文件请求以及当请求URI不包含字符串“display”时创建htaccess重写规则到https?
我尝试了以下方法,但这不起作用:
RewriteCond %{HTTPS} off
RewriteCond %{REQUEST_URI} !xml [NC,OR]
RewriteCond %{REQUEST_URI} !display [NC]
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
谢谢。
【问题讨论】:
-
你的问题到底是什么?
标签: xml string .htaccess url-rewriting contain