Add a trailing slash to url before invoking Silex

view story

http://serverfault.com – As most frameworks out there, Silex depends on rewrite rules to handle pretty urls. The default .htaccess recommended for use with this framework is RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php [QSA,L] Which is straightforward and works just fine. But if I also want to rewrite the request uri to always include a trailing slash I can't get it to work. I tried using the following rules before. RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_URI} !^(.*)/$ RewriteRule . %{REQUEST_URI}/ [L] Re (HowTos)