WIN2008系统的IIS7.0配置REWRITE伪静态环境(转)
来源:互联网 发布:网址导航 源码 html5 编辑:程序博客网 时间:2024/05/04 09:06
首先要准备IIS7.0的REWRITE组件。这个可以上IIS的官网上下载
下载地址:http://www.iis.net/download/URLRewrite
根据需要,点击右侧的下载链接(我的系统是64位的,就下载x64的)
THINKPHP的.htaccess是:
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php/$1 [QSA,PT,L]
</IfModule>
如果还不行的就,就要修改站点根目录的Web.Config这个文件了。
提供一下范例给大家:
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="Rule Names" stopProcessing="true">
<match url="^index.html" />
<action type="Rewrite" url="/index.php" />
</rule>
<rule name="Imported Rule 2" stopProcessing="true">
<match url="^article/(.*).html" />
<action type="Rewrite" url="/index.php?article_id={R:1}" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>
至此伪静态配置完成
- WIN2008系统的IIS7.0配置REWRITE伪静态环境(转)
- 【转】Windows7下IIS7.5的伪静态URL Rewrite安装配置和案例综合
- discuz伪静态规则(win2008 iis7.5)
- Windows7、Windows2008服务器 IIS7.0环境配置伪静态
- IIS配置支持伪静态 ISAPI Rewrite(win2003系统)
- 伪静态IIS7配置
- IIS7.0 + Aspnet 配置伪静态问题....
- IIS7.0中伪静态配置说明
- ASP.NET伪静态页面的实现和伪静态在IIS7.0中的配置
- ASP.NET伪静态页面的实现和伪静态在IIS7.0中的配置
- ASP.NET伪静态页面的实现和伪静态在IIS7.0中的配置
- win2008+IIS 7.5 配置伪静态的方法
- WIN2008+IIS7 配置 ASP.NET 1.1 环境
- win2008 r2 iis7.5 中 access 数据库伪静态设置
- 在win2008 iis7下如何设置Discuz伪静态教程
- Apache Rewrite 伪静态配置
- IIS7.5(IIS7)配置伪静态urlrewrite
- Rewrite – Apache转Lighttpd的伪静态rewrite方法
- 课堂笔记
- python中的*args和 **kwargs
- Myeclipse/Eclipse快捷键
- Failed to load JavaHL Library解决方法
- pl/sql case when then
- WIN2008系统的IIS7.0配置REWRITE伪静态环境(转)
- 类模板实例化问题
- Android适配难题全面总结
- ssh获取webContent路径
- 设置滚轮事件
- ViewPager的简单使用
- docker初学笔记(容器配置tomcat)
- Microsoft API 人脸检测识别
- gfs和hdfs文件系统的区别