Have a look at apache -> mod_rewrite (google. there are manymanymany pages on this), which is the optimal way to do these things.
Alternatively, you can ask your hosting provider to rediect any subdomain to say www.domein.com/index2.php, and have that page determine which domain was asked for, and therefor which page to load. But.. The modrewrite functionality is what you are after.