WordPress 添加固定链接后,原路添加html后缀 Nginx

  1. #HTTP_TO_HTTPS_START 添加固定链接后,原路添加html后缀
  2.    if ($server_port !~ 443){
  3.        rewrite ^(/.*)$ https://$host$1 permanent;
  4.    }
  5.    if ($request_filename ~ (.*)/archives/[09]*$){
  6.           rewrite (/archives/[09]*$) $1.html permanent;
  7.    }
  8.    #HTTP_TO_HTTPS_END

301重定向为

http://www.rvich.com$request_uri

© 版权声明
THE END
扫码关注微信公众号,更多精彩
点赞0支持我一下! 分享
评论 抢沙发

    暂无评论内容