RewriteEngine on
RewriteRule ^ http://site2.ru [R=301]
![LmG3G7oIdnbKml.jpg](http://joxi.ru/LmG3G7oIdnbKml.jpg)
Или:
RewriteEngine on
RewriteCond %{QUERY_STRING} id=1&val=2
RewriteRule ^ http://site2.ru [R=301]
Или
RewriteEngine on
RewriteCond %{QUERY_STRING} ^id=\d+&val=\d+$
RewriteRule ^ http://site2.ru [R=301]