Apache proxypass and multilingual domains <p>I have a website on domain.com which has multilingual content in URLs e.g.:</p> <ul> <li>domain.com/en for english</li> <li>domain.com/de for german</li> <li>domain.com/it for italian</li> </ul> <p>etc. These are not really directories - these are just rewrites that rewrite to /index.php?lang=... So domain.com/lang/one/two/three is rewritten to /index.php?lang=$1&amp;path=$2</p> <p>It also has domain.com/assets directory that holds all the common files (css, images etc.)</p> <p>Now I want to change that every language has its own domain which I think could be managed by using mod_proxy, mod_proxy_http and mod_proxy_html in Apache. What I want to achieve is that if user visits:</p> <ul> <li>www.domain.com he gets content from domain.com/en</li> <li>www.domain.de he gets content from domain.com/de</li> <li>www.domain.it he gets content from domain.com/it</li> </ul> <p>And if he visits /assets directory from any domain (.com, .de, .it) he would get content from domain.com/assets. Also if user visits URL e.g. www.domain.de/something he should receive content from www.domain.com/de/something</p> <p>And the other thing are URLs which would have to be rewritten before output so for instance user that browses domain.de would never go to domain.com at all...</p> <p>Is this possible? Otherwise we would have to reprogram whole CMS to work with different domain for every language...</p>