%1
Refers to a pattern matched in a RewriteCond
condition, while $1
refers to a pattern matched inside a RewriteRule
.
More generically, use %n
to refer to the numbered matches from RewriteCond
condition regex patterns, and use $n
to refer to numbered matches from RewriteRule
regex patterns.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…