deny from allRewriteEngine onRewriteCond %{HTTP_HOST} ^(blog\.abc\.com)(:80)? [NC]RewriteRule ^(.*) http://abc.com/$1 [R=301,L]order deny,allow