xyhcms 行云海CMS在iis下的伪静态web.config 规则
    文章作者:恒爱云[恒爱网络] 阅读次数:45 发布时间:2025-8-15

    xyhcms 行云海CMS在iis下的伪静态 web.config 文件必须是utf8格式,内容如下:


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

                </rules>
            </rewrite>    
            <!--end-rewrite-->    
        </system.webServer>
     </location>
    </configuration>