This is an .htaccess question which I found the answer to but, I need to integrate it with the .htaccess that comes with Craft.
I need to add trailing slashes to the end of all URLs.
I know there is a General Config Setting for adding trailing slashes to URLs to "dynamically-generated URLs" but, in the case there are any hard coded urls with out the trailing slashes or if someone links to the site without trailing slashes it would be nice to set it and forget it via the htaccess.
For example:
http://mydomain.dev/news/news-entry
would 301 redirect to
http://mydomain.dev/news/news-entry/
This is what comes with Craft by default:
<IfModule mod_rewrite.c>
RewriteEngine On
# Send would-be 404 requests to Craft
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !^/(favicon\.ico|apple-touch-icon.*\.png)$ [NC]
RewriteRule (.+) index.php?p=$1 [QSA,L]
</IfModule>