How would I go about rewriting:
http://www.example.com/foo.html?order=desc&limit=all&something=else
to
http://www.example.com/foo.html?order=desc&something=else
I want to remove all instances on limit=all
regardless of how many other parameters in the url.
I have tried:
Options +FollowSymLinks
RewriteEngine on
RewriteCond %{QUERY_STRING} ^(.*&)&limit=all(&.*)?$ [NC]
RewriteRule ^foo\.html$ /foo\.html\?%1%2 [R=301,L]