I have this URL:
http://hostname/dir/file.php?string1/string2
and I want to turn it into
http://hostname/string1/string2
when i do this:
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^dir/file\.php$ . [R=301]
it turns the url to http://hostname/?string1/string2
How do I get rid of that "?" in the middle??