This is my online hosting directory structure
-- /
-- up
-- .logs
-- public_html
-- application
-- system
-- user_guide
-- .htaccess
-- DO_NOT_UPLOAD_HERE
In my config.php, I wrote this code :
$config['base_url'] = 'http://'.$_SERVER['HTTP_HOST'].'/';
$config['index_page'] = '';
$config['uri_protocol'] = 'AUTO';
in my .htaccess file, I have this following code :
<IfModule mod_php5.c>
RewriteEngine on
RewriteBase /
RewriteCond $1 !^(index.php|resources|robots.txt)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L,QSA]
</IfModule>
I tried to remove index.php from my URL, so it will show mydomain.com/class/controller
instead of mydomain.com/index.php/class/controller
It runs smoothly in my localhost, I'm using Ubuntu 15.10 with LAMPP server. However, when I tried above all code online, it shows me the 404 error page.
This is my soon-to-be-if-working-properly website : onesource.esy.es
What's wrong with my code?