Multisite + rewrites question

I inherited a multisite that I re-architected into Trellis and I want to rewrite*) to$1. I want to do this instead of making direct changes to the DB because there are external links on external sites relying on the URL with /wp-content/ Typically on single sites I just added a file to /trellis/nginx-includes/ and added in something like:

rewrite ^/wp-content/uploads/(.*)$ "/app/uploads/$1" last;

This is not working, and I’m not sure why. My multisite “main” site is and my wordpress_sites.yml looks like…
      - canonical:
      - canonical:

How can I add a rewrite like the one above for the subsite?

This topic was automatically closed after 42 days. New replies are no longer allowed.