开发者

REQUEST_URI must NOT end on

开发者 https://www.devze.com 2023-03-01 12:55 出处:网络
how can I do this? RewriteCond %{REQUEST_URI}!payment\\.callback\\.php$ [NC] the uri must not end on payment.callback.php

how can I do this?

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

the uri must not end on payment.callback.php

EDIT:

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]

I don't want to rewrite (http => https) urls to secure.domain.com that ends on payment\.[^.]+\.php$

0

精彩评论

暂无评论...
验证码 换一张
取 消