Avoid 301 on directories

Adds `RewriteCond %{REQUEST_FILENAME} !-d` before the "redirect trailing slash" rule in case of querying a directory (in `/public`) because it caused infinite 301 redirections.