PHPIIS6.0配置伪静态无效求解决,该如何处理
时间:2021-07-01 10:21:17
帮助过:18人阅读
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.gxlcms.com/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