i would like redirect all request to

*.exapmle.com/foo/bar?moo=soo TO exapmle.net/foo/bar?moo=soo

for instance

www.exapmle.com/foo/bar?moo=soo TO exapmle.net/foo/bar?moo=soo

or

exapmle.com/foo/bar?moo=soo TO exapmle.net/foo/bar?moo=soo

how can it with htaceess file?

the way i redirect [wildcard].exapmle.com/[wildcard2] to example.internet/[wildcard2] for instance s1.example.com/content/1?from=test to example.internet/content/1?from=test

Add the next towards the .htaccess file within the root directory of the exapmle.com site

RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST}  exapmle\.com$ [NC]
RewriteRule ^  http://exapmle.net%{REQUEST_URI} [L,R=301]