I have the following url http://mywebsite.com/browse-test.php?v=myname
I want it to be redirected to this instead http://mywebsite.com/myname
This is what I tried so far
RewriteEngine On RewriteCond %{HTTP_HOST} mywebsite.com/browse-test.php?v=$ [NC] RewriteRule ^(.*)$ http://mywebsite.com/$1 [L,R=302] When I looked for an answer on this website and google I didn't find any examples that made a redirect based on on a specific file and php url paramater.