CodeIgniter Forums
the requested url /index.php was not found on this server - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: the requested url /index.php was not found on this server (/showthread.php?tid=58228)



the requested url /index.php was not found on this server - El Forum - 05-25-2013

[eluser]Unknown[/eluser]
This is one of the most repeated questions, but I did not get it and had to ask. I use CI 2. I removed index.php from URL by following steps:

In config.php I set

$config['index_page'] = '';

$config['uri_protocol'] = 'REQUEST_URI';

In routes.php I set

$route['default_controller'] = "home";

here is my .htaccess

RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?/$1 [QSA,L]




the requested url /index.php was not found on this server - El Forum - 05-28-2013

[eluser]TheFuzzy0ne[/eluser]
Are you running XAMPP, or is this on a *nix server?

Try this:
Code:
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php?/$1 [L]