rewrite conditions

I am working on a website that lists products. There is also a filter.
Now comes the problem. We had to change the filter feature and it is now creating slightly different urls and we need to create some 301 redirects based on the query string parameters

The tricky thing is that the parameters can be in any order and also not all may be present at any time.

So for example we might have the following query strings


rewrite conditions

Poster :