How to Redirect URL in NGINX - Ubiq BI
ubiq.co › tech-blog › redirect-url-nginxFeb 28, 2020 · There are multiple ways to redirect URL in NGINX. Let’s look at them one by one. If you want to temporarily redirect URL to another URL in NGINX, then add the following server block to your configuration file. server { # Temporary redirect to an individual page rewrite ^/old-url$ http://www.domain.com/new-url redirect; }
How to Redirect URL in NGINX - Ubiq BI
https://ubiq.co/tech-blog/redirect-url-nginx28.02.2020 · Similarly, you can also redirect location to another domain or redirect 404 to URL in NGINX. 3. Check Syntax and Restart NGINX. Run the following command to check syntax of your updated config file. $ sudo nginx -t. If there are no errors, run the following command to restart NGINX server. $ sudo service nginx reload #debian/ubuntu $ systemctl ...