How can I add a trailing slash to a virtual host?

Solution 1:

You can use a standard Rewrite rule placed in your vHost.

Rewrite /bar http://example.com/bar/

That should do what you want to.