在Linux主机中仅工作默认控制器

时间:2018-11-04 12:17:32

标签: linux codeigniter controller

我有一个正在Windows host中运行的项目。现在我想将主机更改为linux主机。 问题是:服务器仅显示我的默认控制器,而其他网址或控制器无法加载。

消息是: 未找到 在此服务器上找不到请求的URL / padash / login / personel。

我的htaccess配置是:

    <IfModule mod_rewrite.c>
   RewriteEngine On
  RewriteBase /padash
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule ^(.*)$ index.php?/$1 [L]
</IfModule>

<IfModule !mod_rewrite.c>
  ErrorDocument 404 /index.php
</IfModule>

// ************ /////

注意:我的主持人都在本地计算机中

1 个答案:

答案 0 :(得分:0)

这可能是因为Windows不是区分大小写的系统,而Linux是。请确保您遵守这些规则。

命名约定

  1. 文件名必须大写。例如:Myclass.php
  2. 类声明必须大写。例如:class Myclass
  3. 类名和文件名必须匹配。