CodeIgniter 3.0.0项目不工作在子域 [英] CodeIgniter 3.0.0 Project doesn't work on sub domain
问题描述
我使用CI(版本3.0.0)创建了一个项目,它在XAMPP localhost中完美工作。我将该项目上传到子域名,然后发送错误点击此处 a>。
I created a project using CI(version 3.0.0), and it works perfectly in XAMPP localhost. And i upload that project to sub domain then its giving an error Click here.
我也处理路由器和配置设置。那么这个错误是什么呢?如何避免这个?有一些答案,但不适合这个。
I Handle Router's and config setting as well. So what is this error?? how to avoid this?? There are some answers, But not suit for this.
Config.php
Config.php
$config['base_url'] = '';
$config['index_page'] = '';
Routes.php
Routes.php
$route['default_controller'] = 'shop';
$route['404_override'] = '';
$route['translate_uri_dashes'] = FALSE;
.htaccess档案
.htaccess file
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]
</IfModule>
推荐答案
更改控制器,型号和其他
Change the name of your controller, model, and other your class to Capitalize.
示例:
您自己的控制器 test.php
更改为 Test.php
这应该是工作。
您的服务器是Linux,Linux是区分大小写的。
Its because your server is Linux, and Linux is case sensitive.
这篇关于CodeIgniter 3.0.0项目不工作在子域的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!