How to make it so that if I open for example 32322.mysite.com?page=home or dffgfd.mysite.com/reg/index.php the main page of the main domain mysite.com is displayed

A real example, typed test.mysite.com/?post=1 but in real life the main page mysite.com/?post=1 should be displayed

In this subdomain can beat love.

UPD

Did so:

RewriteEngine On RewriteCond %{HTTP_HOST} ^(.+).bestliders.com$ RewriteRule ^(.*)$ http://bestliders.com/$1 [L,QSA] 

But this is how redirection goes, but it is necessary that the initial entered address remains in the address bar.

    0