换域名.htaccess 301规则,不会影响搜索引擎收录

RewriteEngine On
RewriteCond %{HTTP_HOST} ^domain\.com$ [NC]
RewriteRule ^(.*)$ http://www.domain.com/$1 [R=301,L]

Leave a Reply

Your email address will not be published. Required fields are marked *