Apache two apps one domain share language /en - Magento & Wordpress
Apache two apps one domain share language /en - Magento & Wordpress We have Wordpress in the root / in a physical subfolder /wp and Magento in /products. We are wanting to make the sites multi-language using sub folders e.g domain.com/en The problem arises as magento appends the store code (language) after the url so we have domain.com/en (wordpress) domain.com/products/en (magento) Naturally we would like domain.com/en domain.com/en/products Now it's very easy to make it work with some rewrite rule RewriteRule ^(.*)/products/?(.*)$ /products/$1 [L] But still we have an issue as Magento generates the links as /products/en it's possible to start modifying where these links are generated like in MagentoStoreModelStore In the _updatePathUseStoreView function, this doesn't seem to handle all links though In general seems like a bad solution, another idea is to use Apache mod_substitute also seems bad practice, and overhead. Another option is to have both apps in the root an...