

To map this change, the redirects response code 301 is used for designating the permanent movement of a page. On the other hand, a permanent Nginx redirect informs the web browser that it should permanently link the old page or domain to a new location or domain.

Visitor–> Website Page–> Website is under maintenance Another example is when you make temporary redirects of an incomplete page you link that page to another point or the main page: If website maintenance is being performed, temporary redirects are used to notify the users that the website is unavailable.

The redirects response code 302 is used for designating the temporary movement of a page. Temporary redirects is beneficial if a page location needs to change from one place to another location temporarily. Temporary and Permanent Nginx Redirect Explained Remember to have Nginx installed on your VPS. In this tutorial, we will guide you through creating two kinds of Nginx redirect: permanent and temporary. So, to keep your current page with the good SERP position, you can reroute the old URL to the new page. This will completely change your URL composition. For instance when switching from a CMS to another platform. Often users choose to redirect a page that has good SEO ranking.

An Nginx redirect is simple and easy to set up. The ability to forward the URL of the website to another address or point based on your criteria is an essential feature of the Nginx web server. It supports a lot of renowned websites such as Github, Netflix, CloudFlare, Hulu, Airbnb, Hulu, WordPress and many more. That’s why in this tutorial, we’ll show you how to use Nginx to redirect traffic in different ways.Īccording to Datanyze, Nginx 32% market share in the web server market. It is the third most popular web server and well known for its enhanced performance, ease of use and configuration, stability and minimum resource utilization. It can work as a reverse proxy or POP3/IMAP proxy. Nginx (pronounced engine-x) is a powerful open source high performing HTTP web server.
