Nginx 的 301、302 轉址設定

0

Nginx 要設定 301、302 轉址的範例如下:

  • rewrite ^/(.)$ http://www.example.com/$1 permanent; # permanent 301
  • rewrite ^/(.)$ http://www.example.com/$1 redirect; # redirect 302

Leave A Reply

Your email address will not be published.