'Removing index.php from codeigniter url on a wampserver envirement

I want to remove index.php from codeigniter url where i have activated rewrite_module in apache server (im using wampserver) and removed index.php from config variable $config['index_page'] = ''; and added this code to .htaccess file

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

However, it still not working



Solution 1:[1]

replace this line in config/config.php file

$config['index_page'] = '';

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Hamza Shiwani