1
我使用的是PHP框架Codeigniter
,我在其中放了一個codeigniter項目。我爲第一個寫了一個重定向URL,但我無法爲其他人編寫重定向URL
,因爲ISS7
允許一個web.config。現在我想從第二個中刪除index.php
。在IIS7中爲codeigniter重寫的規則
這個網址是
https://donate.nfppay.com/external/public_html/
的第一個項目的URL爲
https://donate.nfppay.com
我的代碼編寫規則是:
<rule name="Main Rule" stopProcessing="true">
<match url=".*" />
<conditions logicalGrouping="MatchAll">
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
</conditions>
<action type="Rewrite" url="external/public_html/index.php?/{R:1}" appendQueryString="false" />
</rule>