- #HTTP_TO_HTTPS_START 添加固定链接后,原路添加html后缀
- if ($server_port !~ 443){
- rewrite ^(/.*)$ https://$host$1 permanent;
- }
- if ($request_filename ~ (.*)/archives/[0-9]*$){
- rewrite (/archives/[0-9]*$) $1.html permanent;
- }
- #HTTP_TO_HTTPS_END
301重定向为
http://www.rvich.com$request_uri
评论