Page 404 CodeIgniter index.php
I finally figured out how to do it, As shown above in my question, remember the directory structure?
In the Controller folder, I have this BS.php file. Then, if I were not mistaken, it's about the case sensitivity of the file. Which is probably due to the domain that does not support capital letters in a file name which I read about it in some answers in other questions in this site.
so in short, I made BS.file, into bs.file. which it worked.
Edit
Also, in routes.php I changed BS to bs.
I see you have posted the codes for index.php. I don't see a need for you since you should try not to edit anything there.
Have you got .htaccess in your root folder?
I always keep this .htaccess file handy whenever I develop any CI applications.
you should remove code from index.php file and create .htaccess file in root directory of your web application. (i.e. application,system folder exist).
It's my repeat answer:Codeigniter issues with paths in localhost (XAMPP)
please create .htaccess file in project folder and write:
<IfModule mod_rewrite.c>RewriteEngine OnRewriteCond %{REQUEST_FILENAME} !-fRewriteCond %{REQUEST_FILENAME} !-d# Rewrite all other URLs to index.php/URLRewriteRule ^(.*)$ index.php?url=$1 [PT,L] </IfModule><IfModule !mod_rewrite.c> ErrorDocument 404 index.php</IfModule>
You don't need to define in base_url in config file:
$config['base_url'] = ''; // blank it.