首頁  >  文章  >  後端開發  >  iis7.5 php偽靜態程式碼實例

iis7.5 php偽靜態程式碼實例

小云云
小云云原創
2018-03-06 13:17:592000瀏覽

本文主要和大家分享iis7.5 php偽靜態程式碼實例,希望大家對php偽靜態有一個跟清晰的認識。

儲存到網站跟目錄檔案名稱web.config

#
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
    <system.webServer>
 <rewrite>
  <rules>
  <rule name="OrgPage" stopProcessing="true">
  <match url="^(.*)$" />
  <conditions logicalGrouping="MatchAll">
  <add input="{HTTP_HOST}" pattern="^(.*)$" />
  <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
  <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
  </conditions>
  <action type="Rewrite" url="index.php/{R:1}" />
  </rule>
  </rules>
 </rewrite>
        <directoryBrowse enabled="false" />
                <security>
          <requestFiltering allowDoubleEscaping="True" />
        </security>
        <defaultDocument>
            <files>
                <clear />
                <add value="index.php" />
                <add value="Default.htm" />
                <add value="Default.asp" />
                <add value="index.htm" />
                <add value="index.html" />
                <add value="iisstart.htm" />
            </files>
        </defaultDocument>
    </system.webServer>
    
</configuration>

相關推薦:

關於php偽靜態配置的方法詳解

php偽靜態技術使用方法匯總

php偽靜態

########################################## #

以上是iis7.5 php偽靜態程式碼實例的詳細內容。更多資訊請關注PHP中文網其他相關文章!

陳述:
本文內容由網友自願投稿,版權歸原作者所有。本站不承擔相應的法律責任。如發現涉嫌抄襲或侵權的內容,請聯絡admin@php.cn