Once you’re happy with how it works replace R=302 by R=301
Make sure you handle www. before you do any of this, otherwise you’ll be rewriting www as well (you can add `RewriteCond %1 !www as a second RewriteCond to both blocks to prevent www from being handled by these blocks).
Ah, actually, I don’t think that will work because subdomains are actually separate domains. Translated, you need to declare your subdomain names in order for the host’s DNS to send the request to your domain.
If the host has such a trick up their sleeve, then Rémon’s code should work (if the *'s are replaced with +'s, and the last line’s mypage replaced with %1 [the atom generated by the EVERYTHING atom in the attached RewriteCond statement]).