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>