- server
- {
- listen 80;
- listen 443 ssl http2;
- server_name xxx.com www.xxx.com;
- index index.php index.html index.htm default.php default.htm default.html;
- root /data/wwwroot/xxx.com;
- #error_page 404/404.html;
- #301-START
- if ($host ~ '^xxx.com'){
- return 301 http://www.xxx.com$request_uri;
- }
- #301-END
复制代码
301重定向到https站点时,发现xxx.com是正常的301,而www.xxx.com是302重定向到https://www.xxx.com
302不利于seo希望官方改进。 |
|