齊博X1版?zhèn)戊o態(tài)規(guī)則IIS7,IIS7.5,IIS8.0及以上適用
這是適用于IIS7,IIS7.5,IIS8.0及以上的齊博X1版的偽靜態(tài)規(guī)則,把以下代碼保存成web.config文件,放到FTP的web目錄內(nèi)即可。
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
? ? <system.webServer>
? ? ? ? <rewrite>
? ? ? ? ? ? <rules>
? ? ? ? ? ? ? ? <rule name="0722100" 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>
?
1、記得重啟服務(wù)器iis
2、后臺(tái)——系統(tǒng)功能——網(wǎng)站配置——是否隱藏前臺(tái)網(wǎng)址中的index.php文件名: 勾選隱藏
3、網(wǎng)站后臺(tái)——網(wǎng)站菜單設(shè)置——所有菜單 ?里的目錄前面的index.php都處理刪除一下。