Welcome Guest, Not a member yet? Register   Sign In
the requested url /index.php was not found on this server
#1

[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]

#2

[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]




Theme © iAndrew 2016 - Forum software by © MyBB