亚洲色图欧美日韩在线播放-户外操美女逼逼中国-免费久久99国产精品自在现-欧美激情五月综合啪啪-九九日本黄色精品视频-亚洲成年网址青青草原-欧美性爱精品在线免费观看-国产精品一区二区美女-日电影一区二区三区

iis下常用程序的偽靜態(tài)規(guī)則列表(包括wordpress、thinkphp)

shopex discuz2.0 discuz2.5 discuz3.x 淘寶客 ecshop phpwind參照http://www.35.com/faq/list.asp?unid=797通過主機面板設置即可

wordpress設置(系統(tǒng)不推薦Windows,如果可以更換為linux系統(tǒng)運行更穩(wěn)定):

第一步:

 登陸wordpress后臺,設置--固定鏈接--自定義結構,選擇設置下URL格式。

第二步:

新建一個文件命名為:web.config,在里面寫入以下規(guī)則,上傳到wwwroot目錄。

<?xml version="1.0" encoding="UTF-8"?>
  <configuration>
   <system.webServer>
     <rewrite>
       <rules>
         <rule name="URL" stopProcessing="true">
          <match url="^(.*)$" />
          <conditions>
             <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
             <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
           </conditions>
          <action type="Rewrite" url="index.php"/>
        </rule>
      </rules>
    </rewrite>
  </system.webServer>
</configuration>

Thinkphp偽靜態(tài)規(guī)則:

 手工創(chuàng)建web.config文件到站點根目錄

<?xml version="1.0" encoding="UTF-8"?>
   <configuration>
     <system.webServer>
       <rewrite>
         <rules>
            <rule name="Imported Rule 1" stopProcessing="true">
              <match url=".*\.(?:gif|jpg|png|css|js|txt|jpeg|swf|flv)" />
             <action type="Rewrite" url="{R:0}" />
           </rule>
            <rule name="Imported Rule 2">
             <match url="/httpd(?:\.ini|\.parse\.errors)" />
              <action type="CustomResponse" url="/" statusCode="403" statusReason="Forbidden" statusDescription="Forbidden" />
            </rule>
           <rule name="Imported Rule 3" stopProcessing="true">
              <match url="^(?!/index.php)(?!/admin.php)(.*)$" ignoreCase="false" />
              <conditions logicalGrouping="MatchAll">
              <add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" negate="true" />
                <add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true" />
              </conditions>
             <action type="Rewrite" url="/index.php/{R:1}" />
           </rule>
        </rules>
      </rewrite>
   </system.webServer>
</configuration>


編輯:三五互聯(lián)
日期:2014-12-23

收藏 】 【 打印 】   
您可對文檔進行評分喲~

勾選遇到的問題提交給我們,收到反饋后保證及時修正更新!

提交反饋需要先登陸會員帳號

上一篇:iis6下常用系統(tǒng)的偽靜態(tài)規(guī)則列表(包括wordpress、thinkphp)
下一篇:apache下常用程序的偽靜態(tài)規(guī)則列表(包括wordpress、thinkphp、dzx3.x)
若文檔內容對您沒有幫助,不能解決問題? 您還可以 咨詢在線客服提交工單搜索常見問題 ,我們將竭誠為您服務。
  >> 相關文章
 
分享至: