Options +FollowSymLinks RewriteEngine on RewriteCond %{HTTP_HOST} ^abc\.com RewriteRule ^(.*)$ http://www.abc.com/$1 [R=permanent,L]