Forum Moderators: phranque
non-working example:
(assumes [mysub.domain1.mydomain.com...] and
[mysubdomain2.mydomain.com)...]
Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^mysub\.domain1.* [NC]
RewriteRule ^/*$ /subdomain1_index.php [R=permanent]
RewriteCond %{HTTP_HOST} ^mysubdomain2.* [NC]
RewriteRule ^/*$ /subdomain2_index.php [R=permanent]
RewriteEngine off
DirectoryIndex everybodyelse_index.php
result: any scriptless request defaults to the DirectoryIndex