title: Apache 2.2.15 - ProxyPassReverse exception on redirect
body: <p>I have a multi domain / multi language construct on an Apache 2.2.15 which proxies the requests to <a href="https://www.domain.de" rel="nofollow noreferrer">https://www.domain.de</a>.
  It works fine, except I want to redirect to the main domain.</p>
  
  <p>I want to redirect <a href="https://www.domain.cn/de/" rel="nofollow noreferrer">https://www.domain.cn/de/</a> to <a href="https://www.domain.de/de/" rel="nofollow noreferrer">https://www.domain.de/de/</a>.</p>
  
  <p>The mod_rewrite rule works fine, the log tells me, mod_rewrite wants to redirect to the correct url.
  Since ProxyPassReverse overwrites the location, it overwrites also the location of the redirect. So, </p>
  
  <p>I need ProxyPassReverse for everything except the redirect. How can I do that?</p>
  
  <p>I can add an environment variables ("E:redirected") to the mod_rewrite rule. But how can I check it when I use ProxyPassReverse?</p>
  
  <p>I can't use no-proxy, because it's available in apache 2.4.26 and later</p>
  
  <p>virtual host</p>
  
  <pre><code>&lt;VirtualHost *:443&gt;
    SSLEngine on
    ServerName www.domain.cn
  
    # Proxy startpage to /zh/
    ProxyPassMatch "^/$" https://www.domain.de/zh disablereuse=on
  
    # Proxy all other URLs completely
    ProxyPass / https://www.domain.de/ disablereuse=on
    ProxyPassReverse / https://www.domain.de/
  &lt;/VirtualHost&gt;
  </code></pre>
  
  <p>mod_rewrite rules</p>
  
  <pre><code>RewriteCond %{HTTP:orig-host} www\.domain\.cn$ [NC]
  RewriteCond %{REQUEST_URI} ^/de/$ [NC]
  RewriteCond %{REQUEST_METHOD} =GET
  RewriteCond %{REQUEST_URI}?%{QUERY_STRING} ^/(.*)$ [NC]
  RewriteRule ^.*$ http://www.domain.de/de/ [R=301,L,NE]
  </code></pre>