琪琪女色窝窝777777,蜜臀亚洲AV永久无码精品老司机 ,东京道一本热中文字幕,天天摸日日添狠狠添婷婷

解決IIS7 稻殼doccms偽靜態(tài)問題


 最近租用win版香港虛擬主機用戶,在裝稻殼doccms時,發(fā)現(xiàn)頁面除了首頁,其他頁面都打不開了,應該是偽靜態(tài)問題,檢查后確實這個原因。

但該程序只有提供httpd.ini和.htaccess腳本,也就是說,只支持linux和windows2003的IIS6版的偽靜態(tài)插件,現(xiàn)在目前主機win2003服務器已經(jīng)很稀少了,幾乎絕跡,況且微軟停止了技術支持。

目前市面上大多win2008和win2012起,IIS版本是iis7以上

這邊把腳本轉換成了web.config后,適用于IIS7以上版本,并提供給大家下載,以下是偽靜態(tài)代碼,將rewrite部分加入到web.config對應位置即可。

<rewrite>
            <rules>
                <rule name="Imported Rule 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" appendQueryString="true" />
                </rule>
                <rule name="Imported Rule 2" stopProcessing="true">
                    <match url=".*$" ignoreCase="false" />
                    <conditions logicalGrouping="MatchAll">
                        <add input="{URL}" pattern="^/(config|content|editor|keditor|inc|setup|skins|temp|upload|xml)(/|)$" />
                    </conditions>
                    <action type="CustomResponse" statusCode="403" statusReason="Forbidden" statusDescription="Forbidden" />
                </rule>
                <rule name="Imported Rule 3" stopProcessing="true">
                    <match url=".*$" ignoreCase="false" />
                    <conditions logicalGrouping="MatchAll">
                        <add input="{URL}" pattern="^/(admini|config|content|editor|keditor|inc|setup|skins|temp|xml)/(.*)[^\.(js|css|gif|jpg|jpeg|png|swf|html|mp3)]$" />
                    </conditions>
                    <action type="CustomResponse" statusCode="403" statusReason="Forbidden" statusDescription="Forbidden" />
                </rule>
                <rule name="Imported Rule 4" stopProcessing="true">
                    <match url=".*$" ignoreCase="false" />
                    <conditions logicalGrouping="MatchAll">
                        <add input="{URL}" pattern="^/(config|content|skins|temp|upload)/.*\.(php|jsp|asp|aspx|cgi|sql|lock)$" />
                    </conditions>
                    <action type="CustomResponse" statusCode="403" statusReason="Forbidden" statusDescription="Forbidden" />
                </rule>
                <rule name="Imported Rule 5" stopProcessing="true">
                    <match url=".*$" ignoreCase="false" />
                    <conditions logicalGrouping="MatchAll">
                        <add input="{URL}" pattern="^/admini/(.+)[^index|login|html].*\.php$" />
                    </conditions>
                    <action type="CustomResponse" statusCode="403" statusReason="Forbidden" statusDescription="Forbidden" />
                </rule>
            </rules>
        </rewrite>

當然,又是為了方便大家,我已經(jīng)把web.config準備好了一份,點擊下載,傳到web目錄下即可。 點擊下載web.config文檔

免實名域名注冊