http://example.com/foo/bar 加载 http://example.com/foo.php

发布于 2024-09-25 04:46:43 字数 484 浏览 1 评论 0原文

我最初认为这是我的 .htaccess 文件的问题,但是即使在禁用 mod_rewrite 后问题仍然存在。 http://example.com/foo/bar 正在加载 http://example.com/foo.php 对于文件 foo 位于服务器上的任何文件夹中,此值为 true。有谁知道导致此行为的原因以及如何阻止此行为,因为我希望它加载 http: //example.com/foo.php?text=bar。我正在运行正常的 LAMP 设置,使用 Ubuntu 作为操作系统。

此外,这种情况仅发生在测试服务器上,而不是实时 VPS 上

I initially thought this was a problem with my .htaccess files, however even after disabling mod_rewrite the problem persisted. http://example.com/foo/bar is loading http://example.com/foo.php with this true for file foo being in any folder on the server. Does anyone know what is causing this behaviour and how I can stop this, as I want it to load http://example.com/foo.php?text=bar. I am running a normal LAMP setup, with Ubuntu as the OS.

Also, this happens only on the testing server, not the live VPS

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

撩发小公举 2024-10-02 04:46:43

这可能是由于 MultiViews 造成的。您可以通过以下方式禁用它:

Options -MultiViews

This is probably due to MultiViews. You can disable it with:

Options -MultiViews
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文