日期:2014-05-17  浏览次数:20382 次

PHP IIS6.0配置伪静态无效求解决
php页面能正常运行。

配置完伪静态。
 ISAPI 筛选器 状态显示:已加载,有绿色上升箭头

重写文件 内容如下:
[ISAPI_Rewrite]


# 3600 = 1 hour
CacheClockRate 3600

RepeatLimit 32

# Protect httpd.ini and httpd.parse.errors files
# from accessing through HTTP

RewriteRule ^(.*)\.html $1\.php



访问测试地址:
http://www.iprc.cn/test.php


有人知道吗?

rewrite 是从这里下载的:http://www.jb51.net/softs/6192.html

------解决方案--------------------
建议你用apache,不建议用iis
------解决方案--------------------
RewriteRule ^(.*)\.html $1\.php

意思是 xxx.html 转向到 xxx.php

iis下建议你用iis url rewrite 官方工具,可以通过导入.htaccess
------解决方案--------------------
你的iis下是否可以完全运行
http://www.iprc.cn/test.php