I am trying to do a quick for to a site that has a problem with 3 directories getting indexed, without the trailing slash. I just want to do a 301 redirection, but its not working.
If this code is in .htaccess, then remove the leading slash from the RewriteRule pattern. Also, the RewriteCond is utterly redundant, and can be removed entirely.
Note that [R=301] is equivalent to [R=permanent] but it is shorter (i.e. faster to process).