我有什么:的.htaccess - 重写规则
我重写规则:
RewriteRule ^(?!user?)([a-z0-9.-]+)+(\/)?$ index.php?page=$1
我想
所以,如果我去http://localhost/hello/
,我想hello
什么$1
但是如果我去http://localhost/user/
我想要做什么在这个重写规则:)因为其它的规则被处理的特殊页面:)
什么问题:
非但没有hello
为$1
,我得到index.php
,为什么,我应该如何解决这个问题?
我还测试了正则表达式与preg_replace
这里:http://regex.larsolavtorvik.com/和作品:\
它需要一些工作,但它帮助过我!非常感谢! – Adam 2010-12-23 02:41:16