在.htaccess中添加:

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTP_HOST} ^abc1.com$ [NC]
RewriteRule ^(.*)$ http://www.abc1.com/$1 [R=301,L]
</IfModule>