How to add suffix / if it does not exist using .htaccces / mod_rewrite?
For example
Input: http://stackoverflow.com/chat
Output: http://stackoverflow.com/chat/
This is my current .htaccess
RewriteEngine On
RewriteCond %{REQUEST_URI} !^/admin
RewriteRule ^([^/]*)/$ /index.php?view=$1 [L]
You want a redirect rule just before your last rule, something like:
(Untested).
edit: oops, forgot to add the trailing / !