httpd RewriteRule does not add a trailing slash
<p>I recently made my first experience with the httpd configuration of a standard apache in a centOS installation. At the moment I fail to specify a RewriteRule that adds a trailing slash to my URLs so that the htmls in this directory can reach css and js files with relative paths (without the trailing slash, the last part of the path gets ignored: <code>domain.com/pizza/cs</code> becomes <code>domain.com/cs</code> which is bad.)</p>

<p>At the moment the significant part of the httpd.conf looks like this:</p>

<pre><code>RewriteEngine On
RewriteRule ^/pizza$ /pizza/

ProxyRequests Off
ProxyPreserveHost On

ProxyPass /pizza balancer://pizzaBalancer nofailover=On
ProxyPassReverse /pizza balancer://pizzaBalancer

&lt;Proxy balancer://pizzaBalancer&gt;
    BalancerMember http://localhost:1234 keepalive=On
&lt;/Proxy&gt;
</code></pre>

<p>When I enter my URL like <code>domain.com/pizza</code> the proxy works and redirects me to my index.html there, but the index.html fails to load the js and css with relative paths, as described above.</p>

<p>At this point, I have no idea how to continue or fix this.</p>