I m trying to do a very simple rewrite of a query string
http://www.example.com/directory1/directory2/test.php?id=8
to
http://www.example.com/directory1/directory2/test/8
and my code is
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^/?test/(.*?)/?$ /test.php?id=$1 [L]
nut its not working i also try many solution provided on stackoverflow but nothing work please help me