+ -
当前位置:首页 → 问答吧 → IIS伪静态ISAPI_Rewrite 不生效?

IIS伪静态ISAPI_Rewrite 不生效?

时间:2011-06-18

来源:互联网

从网上下载Rewrite.dll 
然后在iis里配置ISAPI_Rewrite..重启
变成绿色箭头了...


httpd.ini 配置好放根目录了

PHP code
[ISAPI_Rewrite]

# 3600 = 1 hour

CacheClockRate 3600

RepeatLimit 32

RewriteRule ^/index\.html$ /index\.php
复制代码


就是不生效.........

http://www.xx.com/index.php 这个好使

http://www.xx.com/index.html 显示404 

作者: badwolfooo   发布时间: 2011-06-18

RewriteRule ^/index\.html$ /index\.php 

改为如下试试,后面的路径不需要反义

RewriteRule ^/index\.html$ /index.php

作者: varkychan   发布时间: 2011-06-24