【问题标题】:How to make "domain.com/index.php/path" work?如何使“domain.com/index.php/path”工作?
【发布时间】:2013-02-28 16:38:49
【问题描述】:

如果不使用 .htaccess,index.php/path 可以在服务器上工作,但不能在本地工作(404 错误)。那么 apache 上的配置是什么。

【问题讨论】:

  • 服务器没有为此使用 mod_rewrite?
  • 我猜你可以有一个名为index.php的文件夹,不是吗? (对文件系统不太熟悉)
  • @caiosm1005 on joomla 我们使用index.php/contact 代替index.php?option=com_contact,如果我们不使用.htaccess(网址重写)的帮助
  • @caiosm1005 - 可能,但您仍然需要重写以避免扩展名 (*.php)

标签: php apache


【解决方案1】:

尝试在您的 Apache 配置中启用 AcceptPathInfo。见http://httpd.apache.org/docs/2.2/mod/core.html#acceptpathinfo

【讨论】:

    猜你喜欢
    • 2015-12-08
    • 2013-02-14
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-09-04
    • 2013-01-08
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多