I've done small project using Codeigniter. It was running fine in localhost(xampp server), but after uploading in remote server "404 Page Not Found" error is showing. I can't find where I've done a mistake. I'm using the MX Modular extension & Codeigniter version 2.1.2
config.php
$config['base_url'] = 'http://example.com/projectname';
route.php
$route['default_controller'] = "frontend";
.htaccess (root folder)
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]
</IfModule>
Application -> Modules -> Frontend -> controllers, models, views
Application -> Modules -> Admin -> controllers, models, views
frontend.php (controller)
class Frontend extends MY_Controller{
function __construct(){
parent::__construct();
}
function index(){
$data['main_content'] = 'frontend';
$this->load->view('page', $data);
} }
Please help me to get out of this problem. Thanks in advance