【问题标题】:Codeigniter : Not Found The requested URL /elocal/category/agriculture was not found on this serverCodeigniter:未找到在此服务器上未找到请求的 URL /elocal/category/agriculture
【发布时间】:2014-08-06 05:20:35
【问题描述】:

我是 codeigniter 的新手。实际上 CI 项目在 windows7 操作系统的本地运行得很好。但是我已经在我的系统上安装了 Ubantu 14.04 OS。然后我在浏览器上收到以下错误:

未找到 在此服务器上找不到请求的 URL /elocal/category/agriculture。

Apache/2.4.7 (Ubuntu) 服务器在 localhost 端口 80

搜索后发现,每次在项目url中都要写index.php

不工作 -:localhost/elocal/category/agriculture

工作 -: localhost/elocal/index.php/category/agriculture

请帮帮我,我该如何解决这个问题。


我得到了解决方案:打开 apache2.conf [ /etc/apache2/apache2.conf ]。

然后替换

Options Indexes FollowSymLinks
AllowOverride None
Require all granted

目录>

Options Indexes FollowSymLinks
AllowOverride All
Require all granted

目录>

【问题讨论】:

  • 您是否在项目根文件夹中添加了 .htaccess 文件?

标签: codeigniter


【解决方案1】:

也许它是关于在索引文件名中使用大写字符,在 Windows 文件中大写或小写名称相同,但在 Linux 中不一样。

【讨论】:

  • 我的索引文件名没有大写字符的问题,我查过了。阿米尔
猜你喜欢
  • 1970-01-01
  • 2014-11-28
  • 2019-03-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2018-02-20
  • 1970-01-01
相关资源
最近更新 更多