反向引用 $N 用于 RewriteRule 中匹配的变量调用(0 <= N <= 9)
反向引用 %N 用于 RewriteCond 中最后一个匹配的变量调用(1 <= N <= 9)
RewriteCond适用的标志符
‘nocase|NC' (no case)忽略大小
‘ornext|OR' (or next condition)逻辑或,可以同时匹配多个RewriteCond条件
RewriteRule适用的标志符
‘redirect|R [=code]' (force redirect)强迫重写为基于http开头的外部转向(注意URL的变化) 如:[R=301,L]
‘forbidden|F' (force URL to be forbidden)重写为禁止访问
‘proxy|P' (force proxy)重写为通过代理访问的http路径
‘last|L' (last rule)最后的重写规则标志,如果匹配,不再执行以后的规则
‘next|N' (next round)循环同一个规则,直到不能满足匹配
‘chain|C' (chained with next rule)如果匹配该规则,则继续下面的有Chain标志的规则。
‘type|T=MIME-type' (force MIME type)指定MIME类型
‘nosubreq|NS' (used only if no internal sub-request)如果是内部子请求则跳过
‘nocase|NC' (no case)忽略大小
‘qsappend|QSA' (query string append)附加查询字符串
‘noescape|NE' (no URI escaping of output)禁止URL中的字符自动转义成%[0-9]+的形式。
‘passthrough|PT' (pass through to next handler)将重写结果运用于mod_alias
'skip|S=num' (skip next rule(s))跳过下面几个规则
‘env|E=VAR:VAL' (set environment variable)添加环境变量