title: Mod_proxy rewrite rule help for /foo/ to /foo/index.html
body: <p>With mod_proxy I need to redirect /foo/ requests to /foo/index.html. So if a user types in : <a href="https://example.com/foo/" rel="nofollow">https://example.com/foo/</a> they should be redirected to <a href="https://example.com/foo/index.html" rel="nofollow">https://example.com/foo/index.html</a></p>
  
  <p>I tried the following rule but it does not work:</p>
  
  <pre><code>&lt;Location /foo/&gt;
    RequestHeader set Host example.com
  &lt;/Location&gt;
  ProxyPass         /foo/      https://example.com/foo/index.html
  ProxyPassReverse  /foo/      https://example.com/foo/index.html
  </code></pre>
  
  <p>While this works for any requests to <a href="https://example.com/foo/" rel="nofollow">https://example.com/foo/</a>*, it does not work for <a href="https://example.com/foo/" rel="nofollow">https://example.com/foo/</a>. Any help on what I can use for the redirect to work correctly?</p>