Quantcast
Channel: WampServer - WampServer English
Viewing all articles
Browse latest Browse all 3177

.htaccess mod_rewrite does not redirect url that contains "index" but redirect other pages in wamp (1 reply)

$
0
0
.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]

Viewing all articles
Browse latest Browse all 3177

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>