iis下无法进入内页,伪静态规则
2020-06-04 1281 分享

IIS环境无法进入内页,解决方法
在根目录下放一个叫web.config的文件,内容如下:

<?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>


上一篇
上一篇
相关推荐
iis下无法进入内页,伪静态规则
IIS环境无法进入内页,解决方法在根目录下放一个叫web.config的文件,内容如下:
2020-06-041282分享

联系站长 : 17620917002
站长邮箱 : 425158482@qq.com
问题咨询 : QQ 425158482
系统长期维护,放心使用

备案号:蜀ICP备19015811号-3

案例展示
电脑展示 手机展示
首页
系统
笔记
登录