To redirect
www.example.com/index.php?country=a
to
www.example.com/a/
tried:
RewriteCond %{QUERY_STRING} index.php?country=a [OR]
RewriteCond %{REQUEST_URI} index.php?country=a
RewriteRule ^ http://www.example.com/a/? [L,R=301]
Not works.
Notes:
1) This code is also a bad idea if a
to be dynamic (60 countries in my list).
2) Anything after index.php?country=a
e.g: index.php?country=a&p=d&xx=k
to be removed.