RewriteEngine on RewriteCond %{HTTP_HOST} ^(www\.)?alan.suwalki.csk.pl [NC] RewriteCond %{HTTP_HOST} !^$ RewriteRule ^(.*) http://www.alansuwalki.pl/$1 [L,R=301]