i have installed codigniter on xamp but I have searched on google and have tried many things but stil when I type in address it shows me object not found but when I add index.php it is working fine how do I remove index.php and make it work properly 

Here is my .htaccess

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

```

This is my config.php

```
$config['base_url'] = '/mywebsite';
$config['index_page'] = '';
$config['uri_protocol'] = 'REQUEST_URI';

```

This is my routes .php

```
$route['default_controller'] = "home";
$route['404_override'] = 'c404';
$route['post/(:any)/(:any)'] = "blog/viewPost/$2";
$route['category/(:any)/(:any)'] = "blog/viewPostcategory/$2/$1";
$route['search'] = "blog/search";
$route['symbol/(:any)'] = "companies/view/$1";

```