多域名同内容的 301 重定向不会影响 SEO。

    Nginx域名重定向设置:

    更改xxx.com.conf

    1. server
    2. {
    3. listen 80;
    4. server_name test.com test1.com test2.com;
    5. index index.html index.htm index.php;
    6. root /data/wwwroot/test.com;
    7. if ($host != 'test.com' ) {
    8. rewrite ^/(.*)$ http://test.com/$1 permanent;
    9. }
    10. }

    参考: