Nginx Redirects Examples | GridPane
gridpane.com › kb › some-nginx-redirect-examplesMar 25, 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 ...