This is related to a previous post of mine looking for a way to make sure a trailing slash is appended to urls. I ended up with this code which I found through a thread linked in response to the question:
#add trailing slash if it's omitted
RewriteCond %{REQUEST_URI} !(\.[a-zA-Z0-9]{1,5}|/)$
RewriteRule (.*)$ /$1/ [R=301,L,QSA]
Works great but there are some cases where I specifically do not want the trailing slash appended, like if the url is /c/<whatever> or /p/<whatever>
I tried a bunch of things to get it to ignore any url that starts with /c/ or /p/ but all I managed were a few redirect loops and other bad things
Can anyone help me out?