iis8 php 去除index.php配置web.config报500错误
2015-08-04 17:43
615 查看
编辑文件网站根目录web.config
打开url显示500错误
换成
网上搜到原因是:需要安装url重写
即:urlrewrite2.exe
下载地址:http://www.microsoft.com/web/gallery/install.aspx?appid=urlrewrite2
也可到我的网盘寻找:soft/iis
下载安装后就正常了,打开IIS管理器,点击“Internet信息服务”->“网站”->“项目一”,看到图标“URL重写”,即表示安装成功了!!!!!
网上例子:
(1) webconfig 文件 system.webServer节点下配置rewrite 报错 是因为需要安装URL重写,微软下载链接:http://www.microsoft.com/zh-cn/download/details.aspx?id=7435
(2)注意在应用程序池中选择正确的托管管道模式。
<rewrite> <rules> <rule name="OrgPage" stopProcessing="true"> <match url="^(.*)$" /> <conditions logicalGrouping="MatchAll"> <add input="{HTTP_HOST}" pattern="^(.*)$" /> <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" /> <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" /> </conditions> <action type="Rewrite" url="index.php/{R:1}" /> </rule> </rules> </rewrite>
打开url显示500错误
换成
<rewrite> </rewrite>也报错。
网上搜到原因是:需要安装url重写
即:urlrewrite2.exe
下载地址:http://www.microsoft.com/web/gallery/install.aspx?appid=urlrewrite2
也可到我的网盘寻找:soft/iis
下载安装后就正常了,打开IIS管理器,点击“Internet信息服务”->“网站”->“项目一”,看到图标“URL重写”,即表示安装成功了!!!!!
网上例子:
(1) webconfig 文件 system.webServer节点下配置rewrite 报错 是因为需要安装URL重写,微软下载链接:http://www.microsoft.com/zh-cn/download/details.aspx?id=7435
(2)注意在应用程序池中选择正确的托管管道模式。
相关文章推荐
- php header函数详解
- php 计算两个文件之间的相对路径方法
- YII 获取系统级请求参数的常用方法
- PHP写文件到指定位置
- php汉字繁简体互转扩展:openccpp
- S3C2440 U盘,以及自动挂载顺序(inittab,fstab,mdev,hotplug)
- php性能优化
- 出现Warning: Cannot modify header information - headers already sent by ..的解决办法
- thinkphp 模板读取
- JRTPLIB编译说出现的问题及解决方法(转载)
- PHP学习(变量)
- php ocket通信机制
- 写在学习php之前的一些话
- 裁切图片
- PHP 下载txt文件 功能
- Windows下使用Composer安装yii2遇到的问题及解决方法
- thinkphp的mvc理解
- FTP 传输案例
- TP-Coupon安装完成后提示系统发生错误的解决办法
- yii打印sql语句