为ZWS+MODx编写rewrite
ZWS的PHP是Fast-CGI模式。
MODx开启Friendly URL需要rewrite支持,貌似只有apache的rewrite例子。
自己改了下,能用就可以。
match URL into $ with ^/(manager|?)$
if matched goto END
match URL into $ with ^/([^/?]+.html)$
if matched set URL=/index.php?q=$1
match URL into $ with ^/([^/.?]+)$
if matched set URL=/index.php?q=$1
- 对 /manager 不进行rewrite
- 对 /xxx.html 这样的进行rewrite
- 对 /xxx 这样的进行rewrite
- 大部分带?的都不rewrite
- rewrite都是定向到 /index.php
貌似能用了 :p