I'm trying to get a static react build working together with Plone behind Apache.
Both must have the same uri in order to avoid CORS problems.
The RewriteRules below work fine if only one of them is present. If both are present, the calls with /react in the uri-path go to the second rule and Plone answers with a "page does not seem to exist"
Any hint how to put both together?
<VirtualHost *:80>
...
ProxyVia on
RewriteEngine on
DocumentRoot /var/www/react
...
RewriteRule ^/react/(.*)$ http://localhost:80/index.html [L,P]
RewriteRule ^/(.*) http://localhost:8080/VirtualHostBase/http/%{HTTP_HOST}:80/Plone/VirtualHostRoot/$1 [L,P]
...
</VirtualHost>