带有子域的Codeigniter Dreamhost
|
我在CodeIgniter中有一个应用程序,并将其上传到子域Dreamhost中时,出现以下错误:
遇到错误
无法加载请求的文件:sitio / inicio / index.php
我已将我的应用程序配置如下:
config.php
$config[\'base_url\'] = \'http://sub.domain.com/\';
$config[\'index_page\'] =\'\';
$config[\'uri_protocol\'] = \'AUTO\';
$config[\'url_suffix\'] =\'\';
routes.php
$route[\'default_controller\'] = \"sitio/inicio\";
.htaccess
RewriteEngine on
RewriteBase /home/myuser/sub.domain.com/
RewriteCond $1! ^(index\\.php|public/img|public/css|public/js|public/uploads|robots\\.txt)
RewriteRule ^(.*)$ index.php/$1 [L]
inicio.php
class Inicio extends CI_Controller{
function __construct(){
parent::__construct();
}
function index(){
$this->load->view(\'sitio/inicio/index\');
}
}
我的默认控制器位于控制器内部的子文件夹中,也是我的视图,位于视图内部的子文件夹中。问题是什么?我已经尝试了论坛中的一些解决方案,但问题仍然存在。
谢谢。
没有找到相关结果
已邀请:
1 个回复
臀博
和功能
。如果您想将默认路线指向
,请删除