could you help me get this working please.
I am trying to redirect
/search.php?id=5GHU&distance=50&sort=title
or
/search.php?id=5GHU
or
/search.php?id=5GHU&distance=50
to
/search/?query_string_values
i.e. whether it's one query string parameter or many they all should go there
This is what I tried.
RewriteBase /
RewriteCond %{QUERY_STRING} (?:^|&)id=([^&]+)
RewriteRule ^search\.php$ /search/%1? [L,R=permanent]
Thanks