RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_URI} !..+$ RewriteCond %{REQUEST_URI} !(.*)/$ RewriteRule ^/(.*)$ http://domain.com/$1/ [L,R=301]