I have an application in CodeIgniter, and upload it to a subdomain Dreamhost throws me the following error:
An Error Was Encountered Unable to load the requested file: sitio/inicio/index.php
I have configured my application as follows:
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');
}
}
My default controller is in a subfolder inside controllers, also my view, is in a subfolder inside views. What is the problem? I have tried with some solutions that are in the forum but my problem persists.
Thanks.