【问题标题】:When trying to access index.php it redirects to index and shows 404 page尝试访问 index.php 时,它会重定向到 index 并显示 404 页面
【发布时间】:2020-04-02 12:50:58
【问题描述】:

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

我尝试改变 index.php 在 url 中的显示方式。 我想从 http://localhost/index.php 更改为 http://localhost/index 我这样做了,但它不起作用,所以我恢复了一切。 现在,当我搜索 http://localhost/index.php 时,它会将我重定向到 http://localhost/index 并显示 404 页面。

我在服务器文件夹中没有任何 web.config。我什至卸载了 URL Rewrite 2。在我尝试之前一切正常。

【问题讨论】:

标签: iis url-rewriting web-config


【解决方案1】:

如果您确定您已经恢复了重定向可能缓存在浏览器中的所有内容,请尝试清除缓存(或使用其他浏览器)。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2015-02-05
    • 2018-01-05
    • 1970-01-01
    • 2020-05-22
    • 1970-01-01
    • 2011-09-05
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多