This question appears in various forms a number of times in this forum (search \"trailing slash\"). It hasn't been answered satisfactorily, nor even acknowledged by ARTIO.
I believe it arises only when JoomSEF's \"file suffix\" setting has been made blank. In this case, it is fixed by setting file suffix to / (slash). Then all urls will have a slash at the end and none will be filenames.
Then we have the problem of missing trailing slashes -- if someone types in a url without a trailing slash, we want the page to come up, not a 404. Let's modify .htaccess:
Options +FollowSymLinks
DirectoryIndex index.php
RewriteEngine On
RewriteBase /Joomla
RewriteCond %{REQUEST_URI} !(\.|/$)
RewriteRule (.+) /Joomla/$1/ [R=301,L]
RewriteCond %{REQUEST_URI} ^(/component/option,com) [NC,OR]
RewriteCond %{REQUEST_URI} (/|\.htm|\.php|\.html|/[^.]*)$ [NC]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*) index.php
This is the .htaccess that JoomSEF generated at installation, with RewriteBase modified for the subfolder my site is in (\"/Joomla\"). I've added the two lines isolated in the middle; they force a trailing slash on any url that doesn't contain a dot (ie, a filename) and doesn't end in a slash. After that the JoomSEF rewrites are handled. (I hope a rewriterule expert will polish this up. It works for me.)
So the question remains: What is \"tolerant to trailing slashes\" supposed to do?<br><br>Post edited by: kirk837, at: 2007/09/10 03:35