1. How to 301 redirect in nginx

    To 301 redirect one folder to another use the following rewrite rule: rewrite ^/example/(.*)$ /example1/$1 permanent; Swapping example and example1 with your folders. After updating restart nginx: service nginx restart