I have a number of links with similar structure:
wwwexample.somedomaincom/index.php/path/some-path/some-subpath?parameter=1
Which I want to redirect just to somedomain.com/category/example.com/category/
But I want to match only part ofthe URL-path, like URL part bellowie. /index.php/path/some-path/some-subpath
, because the query parameter is irrelevant.
www.somedomain**/index.php/path/some-path/some-subpath**?parameter=1
I have puttedtried the following rule,but:
RewriteRule ^/index.php/path/some-path/some-subpath?parameter=\dd? /category/ [L,R=301]
RewriteRule ^/index.php/path/some-path/some-subpath?parameter=\dd\? /category/ [L,R=301]