title: Add trailing slash before ProxyPass to other domain
body: <p>I've got this set up on my apache configuration file:</p>
  
  <pre><code>ProxyPassMatch ^/webdocs/(.*)$ http://other-domain/webdocs/$1 retry=0
  ProxyPassReverse ^/webdocs/(.*)$ http://other-domain/webdocs/$1 retry=0
  </code></pre>
  
  <p>So when users access to the subdirectory webdocs in my webserver, I proxypass them to this other-domain server.</p>
  
  <p>When I access to:</p>
  
  <p><a href="http://my-domain/webdocs/example/" rel="nofollow noreferrer">http://my-domain/webdocs/example/</a></p>
  
  <p>Everything works fine and the project works as expected. </p>
  
  <p>However, if I access to</p>
  
  <p><a href="http://my-domain/webdocs/example" rel="nofollow noreferrer">http://my-domain/webdocs/example</a> (without trailing slash)</p>
  
  <p>Then a redirection happens and I can see on my address bar the next url:</p>
  
  <p><a href="http://other-domain/webdocs/example/" rel="nofollow noreferrer">http://other-domain/webdocs/example/</a></p>
  
  <p>Any idea why this is happening? I tried many times to rewrite url so I could add a trailing slash before proxy pass, but then all the requests to files have the trailing slash added as well so the project doesn't run properly (assets not found). I tried something like this:</p>
  
  <pre><code>RewriteCond %{REQUEST_FILENAME} -d
  RewriteCond %{REQUEST_FILENAME} -f
  RewriteCond %{REQUEST_URI} !(.*)/$
  RewriteRule ^/webdocs(.*)$ /webdocs$1/ [L]
  </code></pre>