I have a Wordpress multisite configuration like this:
www.domain.com/-> Primary site (not used)
www.domain.com/de-de/-> German site
www.domain.com/en-us/-> English site
However, for reasons unrelated to Wordpress, I need that the network sites have this layout:
www.domain.com/de-de/blog/-> German site
www.domain.com/en-us/blog/-> English site
Unfortunately, you cannot define a site as
de-de/blog in your WP network because the forward slash is not an allowed character for a site name.
Therefore, I tried defining a reverse proxy like this on Apache:
ProxyPreserveHost On ProxyPass "/de-de/blog/" "http://127.0.0.1/de-de/" ProxyPassReverse "/de-de/blog/" "http://127.0.0.1/de-de/" ProxyPass "/en-us/blog/" "http://127.0.0.1/en-us/" ProxyPassReverse "/en-us/blog/" "http://127.0.0.1/en-us/"
This seems to do the trick for site routing, but in the returned page, the internal URLs in the HTML page are
How could I have WP in multisite mode use URL layout from upstream (i.e.
www.domain.com/de-de/blog/) in the rendered HTML pages?