REQUEST_URI不能以此结束

时间:2011-04-27 09:45:20

标签: mod-rewrite

我该怎么做?

RewriteCond %{REQUEST_URI}      !payment\.callback\.php$ [NC]

uri不得以payment.callback.php

结束

编辑:

RewriteCond %{HTTPS}            !=on
RewriteCond %{HTTP_HOST}        ^(secure)\.domain\.com$ [NC]
RewriteCond %{REQUEST_URI}      !payment\.[^.]\.php$ [NC]
RewriteRule ^(.*)$              https://%1.domain.com/$1 [L,R=301]

RewriteCond %{HTTP_HOST}        ^(demo|secure)\.domain\.com$ [NC]
RewriteCond %{REQUEST_URI}      !^/_domain\.com/_secure/ [NC]
RewriteRule ^(.*)$              /_domain.com/_secure/$1 [L]

我不想将(http => https)网址重写为以payment\.[^.]+\.php$

结尾的secure.domain.com

0 个答案:

没有答案