​Add Trailing slash to specific url’s only

RewriteCond %{REQUEST_URI} ^/(courses|foo|bar)$RewriteRule ^(.*)$ http://%{HTTP_HOST}/$1/ [R=301,L]