【发布时间】:2017-08-17 15:19:15
【问题描述】:
我刚刚安装了 ubuntu-server_6.04.2_LTS,全新安装后我启用了 mod_rewrite,它显示在 phpinfo() 我的 .htaccess 文件没问题 但是,请求仍然没有通过 index.php
【问题讨论】:
-
产生什么类型的错误或它是如何失败的?检查错误日志和 Alex 给出的答案。如果您没有在 htaccess 中使用 rewirteBase,请检查 config.php 中的 base_url。
-
没有错误,但是如果URL中没有描述index.php,我需要输入domain.tld/ci/index.php/controller/method,CodeIniter错误404没有显示,默认apache错误显示 404 页面。
标签: .htaccess codeigniter mod-rewrite apache2