Hi All,
I have an issue where I need to remove a query string from a url. I can do
this in apache (see example below) but we are trying to move most of our
apache rewrites into haproxy to ease deployments and complexity on each
node.
- Working Apache example (removes page=0):
RewriteCond %{QUERY_STRING} ^page=([0-9]{1})&?(.*)$
RewriteRule (.*) $1?%2 [R=301]
Anything.php needs to be really, anything as this could be folder/script or
another query string.
>From Url:
http://example.com/anything.php?page=0&test=0&hello=yes
To Url:
http://example.com/anything.php?test=0&hello=yes
Is this possible?
Thanks!
Andrew