PHP URL重写

怎样在IIS环境下配置Rewrite规则_百度经验

http://jingyan.baidu.com/article/c33e3f485a7c74ea15cbb50e.html

Web.Config

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
    <system.webServer>
        <rewrite>
            <rules>
                <rule name="已导入的规则 1" stopProcessing="true">
                    <match url="^(.*)$" ignoreCase="false" />
                    <conditions logicalGrouping="MatchAll">
                        <add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true" />
                        <add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" negate="true" />
                    </conditions>
                    <action type="Rewrite" url="index.php/{R:1}" appendQueryString="true" />
                </rule>
            </rules>
        </rewrite>
    </system.webServer>
</configuration>

最新文章

  1. UCOSII内核代码分析
  2. 网络最大流问题之Ford-Fulkerson算法原理详解
  3. WPF MVVM模式
  4. [HTML]js动态修改表格里面的内容
  5. ehcache简单使用
  6. Android中自定义ActionBar的背景色等样式style
  7. IntelliJ IDEA使用心得之基础篇
  8. Nodejs的安装配置及如何在sublimetext2中运行js
  9. 【XSY2887】【GDOI2018】小学生图论题 分治FFT 多项式exp
  10. javascript通过navigator.userAgent识别各种浏览器
  11. EntityFramework Reverse POCO Code First 反向生成器
  12. C语言结构体变量私有化
  13. Element-ui el-cascader不触发prop?
  14. web移动端生产环境调试
  15. Uva1395 POJ3522 Slim Span (最小生成树)
  16. VS2008:Failed to return new Code Element
  17. ptthon 网络编程
  18. i.mx6 Android6.0.1分析input子系统:测试
  19. hau1021 Fibonacci Again(递归)
  20. js-解决移动端点击事件的延迟问题

热门文章

  1. sql server 递归汇总 按指定层级汇总
  2. vim显示行号、语法高亮、自动缩进、添加下划线的设置
  3. 如何在Windows Server 2008 R2下搭建FTP服务
  4. PHP的HashTable实现
  5. 云端中间层负载均衡工具 Eureka
  6. DataGridView使用技巧三:不显示最下面的新行、判断新增行
  7. jQuery客户端分页
  8. ViZDoom安装
  9. TensorFlow基础笔记(0) tensorflow的基本数据类型操作
  10. Eclipse 调试总进入Spring代理的解决办法