Remove get parameters from URLs with 301 redirect to another site?

0 like 0 dislike
142 views
It is necessary to prescribe a rule which would redirect from all pages in the category old site to a certain category, while cast would all get requests of the old site.
Now there is a rule written in. htaccess of the old site

RewriteRule ^brands/ https://new-site.ru/manufacturers [L,R=301]
RewriteRule ^(.*)$ https://new-site.ru/ [L,R=301]

it correctly redirects in this case : old-site.ru/brands/Sony on new-site.ru/manufactures
but when you request old-site.ru/brands/Sony?newprice it turns out new-site.ru/manufactures?newprice
u need to new-site.ru/manufactures no get request.
by | 142 views

1 Answer

0 like 0 dislike
Just add a question mark.
RewriteRule ^brands/ https://new-site.ru/manufacturers? [L,R=301]
by

Related questions

0 like 0 dislike
1 answer
0 like 0 dislike
1 answer
0 like 0 dislike
1 answer
110,608 questions
257,187 answers
0 comments
40,796 users