dsafq2131321 2018-06-05 13:55
浏览 82

只在nginx服务器上加载默认控制器的索引功能

I am stuck with this problem. I am working with codeigniter 3.

Only default controller's index function is being loaded. No other controller is working.

I searched a lot about this topic even on stackoverflow, but nothing worked for me.

I also tried to change the files name to lowercase and also changed url's accordingly but nothing is working.

I developed the website using xampp apache on my localhost. It was working perfectly on localhost.

I have placed the codeigniter files under /var/www/html directory.

What could be the reason? I have been trying to find a solution for 3 days.

  • 写回答

1条回答 默认 最新

  • dpp89959 2018-06-05 14:12
    关注

    May be it was the issue with your htaccess

    Try With index.php in the url like

    http://example.com/index.php/controller/function

    评论

报告相同问题?

悬赏问题

  • ¥15 ads仿真结果在圆图上是怎么读数的
  • ¥20 Cotex M3的调试和程序执行方式是什么样的?
  • ¥20 java项目连接sqlserver时报ssl相关错误
  • ¥15 一道python难题3
  • ¥15 用matlab 设计一个不动点迭代法求解非线性方程组的代码
  • ¥15 牛顿斯科特系数表表示
  • ¥15 arduino 步进电机
  • ¥20 程序进入HardFault_Handler
  • ¥15 oracle集群安装出bug
  • ¥15 关于#python#的问题:自动化测试