How To Create Temporary and Permanent Redirects with Nginx
HTTP redirection is a way to point one domain or address to another. There are a few different kinds of redirects (301 Moved Permanently and 302 Found), each of which mean something different to the client browser. You can add a redirect with `rewrite ^/$ http://www.domain2.com redirect;` or `rewrite ^/$ http://www.domain2.com permanent;` in your server configuration. This guide will cover a more in depth explanation of how to implement each kind of redirect in Nginx.