I have search and tried all possible solutions from Stackoverflow but nothing seems to work for my case.
I'm trying to rewrite this URL:
http://www.example.com/test/name.php?name=somename
to appear as
http://www.example.com/test/somename
This is what I have currently in my htaccess file
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^test/?$ /test/name.php/?name=$1 [NC,L,QSA]
Would appreciate if anyone can lend some help here as I have been stuck in this for more than a day. Thanks!
test/…