专注收集记录技术开发学习笔记、技术难点、解决方案
网站信息搜索 >> 请输入关键词:
您当前的位置: 首页 > Apache

apache rewrite无效,请高手相助!解决方案

发布时间:2010-06-14 18:50:22 文章来源:www.iduyao.cn 采编人员:星星草
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
友情提示:
信息收集于互联网,如果您发现错误或造成侵权,请及时通知本站更正或删除,具体联系方式见页面底部联系我们,谢谢。

其他相似内容:

热门推荐: