.htaccess mod_rewrite does not redirect url that contains "index" but redirect other pages
Example
when you navigate to "[localhost]; The request_uri is empty.
But when you navigate to [localhost] or any other page, the page displays the correct view.
Please note mod_rewrite in enable in wamp server and this .htaccess file works perfectly when running xampp.
Here is my .htacces file
RewriteEngine on
RewriteBase /projectname/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?request_uri=$1 [NC,L,QSA,B]
Example
when you navigate to "[localhost]; The request_uri is empty.
But when you navigate to [localhost] or any other page, the page displays the correct view.
Please note mod_rewrite in enable in wamp server and this .htaccess file works perfectly when running xampp.
Here is my .htacces file
RewriteEngine on
RewriteBase /projectname/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?request_uri=$1 [NC,L,QSA,B]