【发布时间】:2016-05-09 11:40:44
【问题描述】:
如何从 Windows 服务器中删除 index.php 从this 找到答案
尝试了以下方法。
1.在我的codeigniter项目的根目录中创建一个名为web.config的文件。
2.将以下内容放在它上面
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="Rule" stopProcessing="true">
<match url="^(.*)$" ignoreCase="false" />
<conditions>
<add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true" />
<add input="{URL}" pattern="^/favicon.ico$" ignoreCase="false" negate="true" />
</conditions>
<action type="Rewrite" url="index.php/{R:1}" appendQueryString="true" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>
但它对我不起作用。
【问题讨论】:
标签: php .htaccess codeigniter azure