Roland Maier: Redirect in htaccess schreiben

Beitrag lesen

Hallo Leute!

Ich möchte ein redirect schreiben, das http://my-domain.com/admin und http://www.my-domain.com/admin, aber nicht bei subdomains auf https://fancy-subdomain.my-domain.com/admin umleitet. Dafür hab ich folgendes in die htaccess reingeschrieben, es funktioniert aber nicht :-/
(mod_rewrite und AllowOverride sind sicher richtig eingestellt):

<IfModule mod_rewrite.c>  
   Options		+FollowSymLinks  
   RewriteEngine on  
  
#--------------------------------  
# redirect /admin to the https url  
#--------------------------------  
   RewriteCond %{HTTP_HOST} ^www. [OR]  
   RewriteCond %{HTTP_HOST} ^my-domain.de [OR]  
   RewriteCond %{HTTP_HOST} ^my-domain.com  
   RewriteRule /admin https://fancy-subdomain.my-domain.de/admin  
  
</IfModule>

danke
Roland