In codeigniter there is no files are calling in URL. All what Codeigniter do is use MVC Structure to render view.
As well as if you access anything on root folder(index.html or index.php) it will redirect to application folder. Then default controller is Trigger out.
cz in root there is file call index.php, there you can see
$application_folder = 'application';
$system_path = 'system';
And you can take look at this
- routes -
config/routes.php
- controller -
controller/
- model -
model/
- view -
view/
and we use .htaccess to remove index.php in URL.
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]
</IfModule>
if you want to add .html or .php end of URL
in config/config.php
/*
|--------------------------------------------------------------------------
| URL suffix
|--------------------------------------------------------------------------
|
| This option allows you to add a suffix to all URLs generated by CodeIgniter.
| For more information please see the user guide:
|
| http://codeigniter.com/user_guide/general/urls.html
*/
$config['url_suffix'] = '';