ZFSYS

iis thinkphp51伪静态

206

这是适用于IIS7,IIS7.5,IIS8.0及以上的ThinkPHP的伪静态规则,把以下代码保存成web.config文件,放到FTP的web目录内即可

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
    <system.webServer>
        <rewrite>
            <rules>
                <rule name="ThinkPHP_NiPaiYi" 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>


  • 没有任何评论
最新帖子
[站长推荐] 一些站长/创业者使用的工具推荐 593
HTML+JS 全选与取消全选功能 545
子枫内容系统更新记录 449
有没有人做百度小程序啊 447
PHP 按照指定数量切割字符串 393
php composer更换国内源 375
a链接一键安装ios应用 373
composer 报错SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify 348
layui table 的宽度超出自动隐藏 345
怎么克服拖延症呀 339
最近热帖
[站长推荐] 一些站长/创业者使用的工具推荐 593
HTML+JS 全选与取消全选功能 545
子枫内容系统更新记录 449
有没有人做百度小程序啊 447
PHP 按照指定数量切割字符串 393
php composer更换国内源 375
a链接一键安装ios应用 373
composer 报错SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify 348
layui table 的宽度超出自动隐藏 345
怎么克服拖延症呀 339
近期热议
开始使用 161