0

在 index.php 之后传递参数时,它显示 404 错误.. 它的 apache 错误不是 cms 但直接访问 index.php 没有问题

File does not exist: /home/me/web/test/index.php/a
File does not exist: /home/me/web/test/index.php/home
File does not exist: /home/me/web/test/index.php/contact

问题与 mod_rewrite 无关,因为当 index.php 在 URL 中时,我遇到了同样的错误。

使用 .htaccess 和 mod_rewrite 并从 url 中删除 index.php 没有帮助:(

4

1 回答 1

0

您并没有完全清楚这些 URL 的来源,但从外观上看,您的 Web 服务器的AcceptPathInfo指令不是“打开”。

该指令控制是否接受或拒绝包含跟随实际文件名(或现有目录中不存在的文件)的尾随路径名信息的请求。PATH_INFO 环境变量中的脚本可以使用尾随路径名信息。

于 2012-06-18T16:59:55.557 回答