How to do a redirect?

Hi all, need to do a redirect from one directory to the new site, we need all URLs that have to look like this**** to do a redirect here
only here there are nuances
1) links like such so you need to send
2) a link with any get parameters to redirect to the main page i.e. so〈=he&contract=as&fyu=gfjug here
everything tried works just for the redirect on the same page on a different domain

please tell me how to do this via htaccess?
June 5th 19 at 21:31

Find more questions by tags htaccess