折腾了半天apache rewrite rule,整理一下郁闷列表:

1、apache 1.x.x 不支持 \d 的 regex 表达
2、在 .htaccess 中设置的 rewrite rule,如果 REQUES_URI 变化,则apache会重新执行一遍 .htaccess 中的 rewrite rule
3、在 httpd.conf 中设置 rewriterule,则不会有 2 的问题,是一锤子买卖
4、多个RewriteCond中,后面的RewriteCond无法使用之前RewriteCond中匹配的 %n 变量

几个速查帮助手册链接 - http://del.icio.us/zixia/mod_rewrite