请问一个httpd.ini的规则……总出错!哎!
本帖最后由 szgekko 于 2009-7-29 10:46 编辑
[ISAPI_Rewrite]
RewriteRule ^(.*)/index.html$ $1/index\.php
RewriteRule ^(.*)/Product_state_([0-9]+)\.html$ $1/index\.php\?action=Product&state=$2
上面是我的httpd.ini文件
现在有这2条规则
一个是想 访问 index.html即可访问
一个是想访问
Product_state_1.html 等同于 index.php?action=Product&state=1
请问这样写法有问题吗!?
先不看第2条的话
我现在
[ISAPI_Rewrite]
RewriteRule ^(.*)/index.html$ $1/index\.php
只有这一条 也不能通过
index.html 访问首页呢……
请大家纠正错误 多谢