Question: I'm trying to remove index.php,in my localhost, but it seems doesn't working,its on `http://localhost/testing`.

I put .htacces in 'testing' directory under the htdocs.

`LoadModule rewrite_module modules/mod_rewrite.so`
 at Apache/conf also already unchecked.

Here my .htaccess:

```
RewriteEngine On
RewriteBase /testing/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /testing/index.php/$1 [L]

```

Here my config:

```
$config['base_url']    = "http://localhost/testing";
$config['index_page'] = '';
$config['uri_protocol'] = 'AUTO';

```

When I access login controller, it's not found.

> 
> Not Found
> 
> 
> The requested URL /testing/login was not found on this server.
> 
> 
> 

I really don't know what to try next. Any help would be appreciated.

Answer: 
Try this :-

Config.php :-

```
$config['base_url'] = 'http://localhost/testing/';

$config['index_page'] = '';

```

.htaccess

```
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]

```
basically the index.php is included in all URLs:

we can remove this using .htaccess with a simple rules. following is an example of such a file, using the "negative" method in which everything is redirected, 

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

```

now restart your server and check