I have a number of links with similar structure:
example.com/index.php/path/some-path/some-subpath?parameter=1
Which I want to redirect just to example.com/category/
But I want to match only the URL-path, ie. /index.php/path/some-path/some-subpath
, because the query parameter is irrelevant.
I have tried the following rule:
RewriteRule ^/index.php/path/some-path/some-subpath?parameter=\dd\? /category/ [L,R=301]
parameter=
part be present, but the value does not matter? Or can the query string be ignored altogether?