Nginx Redirects Examples | GridPane
https://gridpane.com/kb/some-nginx-redirect-examples25.03.2020 · Step 1. Create redirect-main-context.conf. We can add redirects via the *-main-context.conf include. First, we need to create a file called redirect-main-context.conf inside /var/www/site.url/nginx. Create the file with the following command (switching out site.url for your domain name): nano /var/www/ site.url /nginx/redirect-main-context.conf ...