尝试访问index.php时,它将重定向到index并显示404页面

时间:2020-04-02 12:50:58

标签: iis url-rewriting web-config

我正在使用 IIS ,最近我安装了一个名为 URL Rewrite 2 的模块。

我尝试更改 index.php 在网址中显示的方式。 我想从http://localhost/index.php更改为http://localhost/index 我这样做了,但是没有用,所以我还原了所有内容。 现在,当我搜索http://localhost/index.php时,它会将我重定向到http://localhost/index并显示404页面。

服务器文件夹中没有任何web.config。我什至不喜欢 URL Rewrite 2 。在尝试此操作之前,一切都正常。

1 个答案:

答案 0 :(得分:0)

如果您确定已还原所有内容,则重定向可能会存储在浏览器中,请尝试清除缓存(或使用其他浏览器)。