一面膜胸口一面吻最新版_高清中文国产欧美_高清国内白嫩美女在线观看_亚洲午夜久久国产精品_欧美激情视频中文在线_亚洲精品性色妇AV蜜桃久_日本在线区一区二_a级黄色片网站亚洲三级小视频

    同一套xyhcms 行云海CMS程序在同一個空間內一個主站+ 多個二級目錄分站設置偽靜態
    文章作者:恒愛云[恒愛網絡] 閱讀次數:2285 發布時間:2025-8-15

    某客戶使用同一套xyhcms 行云海CMS程序在我司同一個空間內搭建了一個主站+ 多個二級目錄分站,設置偽靜態后發現二級目錄內的分站部分偽靜態無法打開。

    接到求助以后研究了很久,發現是主站下的偽靜態和3個分站 lixin   zhouliu    guolu 下的偽靜態存在沖突導致的。

    為了避免沖突,根目錄下的偽靜態web.config 里的主站偽靜態里要排除  這3個分站的目錄 ,以避免偽靜態規則沖突 ,具體代碼如下: 



    <?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="{QUERY_STRING}" pattern="^$" ignoreCase="false" /> 
                         <add input="{REQUEST_URI}" pattern="^/(lixin|zhouliu|guolu)" ignoreCase="true" negate="true" /> 
                         
                            <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>
                    

                    <rule name="Rewrite to lixin" stopProcessing="true">
                        <match url="^lixin/(.*)$" 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="lixin/index.php/{R:1}" appendQueryString="true" />
                    </rule>                
                


                    <rule name="Rewrite to zhouliu" stopProcessing="true">
                        <match url="^zhouliu/(.*)$" 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="zhouliu/index.php/{R:1}" appendQueryString="true" />
                    </rule>        



                    <rule name="Rewrite to guolu" stopProcessing="true">
                        <match url="^guolu/(.*)$" 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="guolu/index.php/{R:1}" appendQueryString="true" />
                    </rule>        


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