【发布时间】:2010-11-26 16:34:53
【问题描述】:
我用这个来重写
RewriteRule ^site/(.*) index.php?rewrite=$1 [L]
RewriteRule (.*)\.xml(.*) $1.php$2 [nocase]
我开始把这个网站变成一个伪mvc系统,真的需要阅读以上内容
1. If the directory is NOT ^site/public/* OR ^site/assets/* or (etc) then re-write the url as index.php?rewrite=$1 (I'm basically trying to replicate the first rule above for all cases except a couple).
2. ALSO, go ahead and rewrite all .xml pages to be changed to .php
【问题讨论】:
标签: apache url mod-rewrite rewrite