Nginx Redirect

Redirect www domain to non-www

Redirect Naked Domain to www

Redirect a site to HTTPS

To redirect a specific URL to another URL

If you want to redirect a URL that matches specific pattern, use