The following .htaccess rule un-matches string admin and adds a trailing slash(/) to that URL if admin is not found in the URL
RewriteRule ^((?!admin).)*((?!\/).)$ /$1/ [L,R]
But it has an error, and it is
http://www.domain.com/index
should result to : http://www.domain.com/index/
But currently it is resulting: http://www.domain.com/inde/
Please find a solution to correct it. Thanks Very much .