Re:
Die Direktive Redirect hat mit mod_rewrite nichts zu tun.
<IfModule mod_alias.c>
Redirect permanent /olddomain1 http://www.new-domain1.de
Redirect permanent /olddomain2 http://www.new-domain2.de
</IfModule>
Was ich jetzt noch brauch is ein:
if(subdomain=='sub1') {
Redirect permanent / http://www.new-domain3.de
}
Dafür musst Du dann doch auf mod_rewrite zurückgreifen:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTP\_HOST} sub1.olddomain3.de [NC]
RewriteRule ^(.\*)$ http://www.new-domain3.de/$1 [R=301,QSA,L]
RewriteCond %{HTTP\_HOST} \*.olddomain1.de [NC]
RewriteRule ^(.\*)$ http://www.new-domain1.de/$1 [R=301,QSA,L]
RewriteCond %{HTTP\_HOST} \*.olddomain2.de [NC]
RewriteRule ^(.\*)$ http://www.new-domain2.de/$1 [R=301,QSA,L]
</IfModule>
RewriteCond hat dafür die entsprechenden Beispiele zum nachvollziehen.
Gruß aus Berlin!
eddi