Reputation: 101
I hope someone can help me with this error, I have these following lines of code in my project HMVC CodeIgniter 3.0
config.php
$config['base_url'] = 'http://web.com/project/';
$config['index_page'] = 'index.php';
$config['uri_protocol'] = 'REQUEST_URI';
routes.php
$route['default_controller'] = 'login/home';
$route['404_override'] = '';
$route['translate_uri_dashes'] = FALSE;
.htaccess
RewriteEngine on
RewriteCond $1 !^(index\.php|assets|images|files|robots\.txt)
RewriteRule ^(.*)$ index.php/$1 [L]
the root of my folders are as follows
project
| application
| | config
| | | config.php
| | | routes.php
| | modules
| | | login
| | | | models
| | | | | ...
| | | | views
| | | | | ...
| | | | controllers
| | | | | home.php
|.htaccess
result:
404 Page Not Found
The page you requested was not found.
I need help.. thanks!
Upvotes: 0
Views: 4891
Reputation: 700
change your
$config['base_url'] = 'http://web.com/project/';
to
$config['base_url'] = 'https://web.com/project';
Upvotes: 2
Reputation: 155
If you already using .htaccess
, just remove index.php
in $config['index_page']
and most of my projects using codeigniter, i leave my $config['base_url']
empty. Also to make sure, your project
controller actually exist in controller folder and properly using CI format. Read the manual for more information.
Upvotes: 0