http://example.com/foo/bar 加载 http://example.com/foo.php
我最初认为这是我的 .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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这可能是由于 MultiViews 造成的。您可以通过以下方式禁用它:
This is probably due to MultiViews. You can disable it with: