apache rewrite无效,请高手相助!
这个是我本地APACHE的配置:
<Directory />
     Options FollowSymLinks
     AllowOverride All
     Order allow,deny
     Deny from all
     RewriteEngine On
     RewriteRule /tb/cats_(.+).html  /tb/cats.php?cid=$1
     RewriteRule /tb/item_(.+).html  /tb/item.php?iid=$1     
</Directory>
地址为:192.168.0.8/tb/cats.php?cid=1
现在有个问题,如果按照这个写REWRITE规则,还需要修改php程序才能实现,如何写才能不修改程序呢?
在网上找了好多资料,也没有类似的情况,希望得到高手相助!
谢谢!
------解决方案--------------------
/tb/item_(.+)\.html
????
------解决方案--------------------
  RewriteEngine On
 RewriteRule /tb/cats_(.+).html /tb/cats.php?cid=$1
 RewriteRule /tb/item_(.+).html /tb/item.php?iid=$1
这样的片段放到
最外面、vhost里面试试看,当然,还有别忘了load_module