IIS的URL REWRITE功能设置
来源:互联网 发布:手机自动应答软件 编辑:程序博客网 时间:2024/05/01 22:52
以APACHE的配置举例
<IfModule mod_rewrite.c> Options +FollowSymlinks RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$ index.php/$1 [QSA,PT,L]</IfModule>
我们根据.htaccess来改成IIS的版本
步骤1:进入URL重写
步骤2:添加规则-->空白规则
名称:all
【匹配URL】
请求的URL:与模式匹配,使用:正则表达式
模式:^(.*)$
【条件】
逻辑分组:全部匹配。
添加1:{REQUEST_FILENAME}不是文件
添加2:{REQUEST_FILENAME}不是目录
【操作】
操作类型:重写。
操作属性,重写URL:index.php/{R:1}
附上已经配置好的web.config文件
<?xml version="1.0" encoding="UTF-8"?><configuration> <system.webServer> <rewrite> <rules> <rule name="all"> <match url="^(.*)$" /> <conditions> <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> </system.webServer></configuration>
0 0
- IIS的URL REWRITE功能设置
- IIS下伪静态html(URL Rewrite)的设置方法
- URL Rewrite的设置方法
- ISAPI Rewrite IIS下的Url重写
- iis url rewrite 學習
- IIS 配置伪静态页html URL Rewrite 的设置方法
- IIS的ISAPI服务器扩展URL REWRITE(URL重写)简介
- IIS 下配置无后缀的URL ReWrite
- 利用 apache 的 rewrite 功能生成静态页面URL地址
- Apache Rewrite url重定向功能的简单配置
- XAPMM Apache Rewrite url重定向功能的简单配置
- Apache Rewrite url重定向功能的简单配置
- Apache Rewrite url重定向功能的简单配置
- Apache Rewrite url重定向功能的简单配置
- web developer tips (31):利用IIS 7.0的URL Rewrite 模块产生用户友好的URL
- 利用IIS 7.0的URL Rewrite 模块产生用户友好的URL
- Microsoft URL Rewrite Module for IIS 7.0
- Microsoft URL Rewrite Module for IIS 7.0
- 过滤一些病毒域名
- nginx.conf绑定虚拟目录执行PHP
- WINDOWS计划任务设置MYSQL自动备份
- 深入理解ISO七层模型
- FileZilla Client Windows 2003 最新可用版本
- IIS的URL REWRITE功能设置
- VC运行库相关地址
- thinkphp配置nginx伪静态并解决PATHINFO问题和fix_pathinfo漏洞
- iptables配置允许vpnserver(softether vpn)
- MYSQL存储过程:批量更新数据
- MYSQL存储过程:批量更新数据2(产品品牌)
- org.json.JSONException: Value of type java.lang.String cannot be converted to JSONObject
- 让阿里云支持ipv6(其他多数VPS通用)
- LeetCode 28. Implement strStr()