htaccess – add a trailing slash to a URL

# Add trailing slash to the end
RewriteCond %{REQUEST_URI} !(/$|\.)
RewriteRule (.*) %{REQUEST_URI}/ [R=301,L]