【发布时间】:2014-07-22 15:25:34
【问题描述】:
我正在使用 PHP 框架 Codeigniter,并在其中放入了另一个 codeigniter 项目。我为第一个写了一个重定向 URL,但我不能为另一个写重定向 URL,因为ISS7 允许一次 web.config。现在我想从第二个中删除index.php。
这个网址是
https://donate.nfppay.com/external/public_html/
第一个项目的网址是
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>
【问题讨论】:
标签: php codeigniter redirect iis-7