I've installed Wordpress in subdirectory domain.com/blog/ The problem with the trailing slash , Wordpress posts gives 200 OK http for the two versions domain.com/blog/post-name and domain.com/blog/post-name/
i want to force trailing slash at the end and redirect 301 from non slash to trailing slash at the end
so trailing slash version gives 200 OK ONLY
my code
# Force Trailing Slash
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^[^/]+$ %{REQUEST_URI}/ [L,R=301]