relative path doesn't work after adding a rewrite rule for appending trailing slash
问题 I have an index page placed in /forum/section1/. I have a rule to automatically redirect to the index page when I browse exampledomain.com/forum/section1/ . Sometimes when I forgot the trailing slash, it keeps loading and never goes to the index page. I have added a rule to append a trailing slash to every request: RewriteEngine on #From http://enarion.net/web/htaccess/trailing-slash/ RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_URI} !(.*)/$ # Don't apply to images