Multiple RewriteConditions: How to chain them before a set of rules?

前端 未结 3 1872
梦如初夏
梦如初夏 2020-12-14 07:50

Q1: How to chain these two conditions making them if BOTH A AND B, then proceed...
Q2: How to make them stick for

3条回答
  •  天命终不由人
    2020-12-14 08:15

    You can't do it that way. You have to either repeat your RewriteConds or rethink your rewrite rule using references to do it all in one rule. The first route, though not pretty, would be the easiest. so

    RewriteCond A
    RewriteCond B
    RewriteRule 1
    
    RewriteCond A #duplicate
    RewriteCond B #duplicate
    RewriteRule 2
    

提交回复
热议问题