production

    location /x/usa {
       rewrite ^/x/usa/or/john-day/john-day.* https://x.com/x/usa/or/john-day/john-day-oregon permanent;
    }

staging.

    location /x/usa {
       rewrite ^/x/usa/or/john-day/john-day.* https://staging.x.com/x/usa/or/john-day/john-day-oregon permanent;
    }

other differences besides subdomain…

  • staging has auth_basic setup
  • production has @prerender

I put this redirect at the top, right after the ServerName config so that it should do this redirect before trying anything else. It is still not working on production.

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

×
1 answer

NM. other issues. thanks.

Submit an Answer