Revision 8478
Added by Aaron Marcuse-Kubitza over 11 years ago
.htaccess | ||
---|---|---|
44 | 44 |
RewriteRule ^.*$ /dotpath%1 [discardpath,noescape,last,qsappend] |
45 | 45 |
|
46 | 46 |
# auto-add trailing / if not external redirect (limited form of DirectorySlash) |
47 |
RewriteCond %{REQUEST_FILENAME} -d [ornext] |
|
47 | 48 |
RewriteCond %{LA-F:REQUEST_FILENAME} -d |
48 | 49 |
RewriteRule ^.+(?<!/)$ %{REQUEST_URI}/ [discardpath,noescape,last,redirect,qsappend] |
49 | 50 |
|
Also available in: Unified diff
web/.htaccess: auto-add trailing / if not external redirect: added test if `%{REQUEST_FILENAME} -d` in addition to checking %{LA-F:REQUEST_FILENAME}, because there are some cases (e.g. subdirs that are symlinked outside the DOCUMENT_ROOT) where LA-F:REQUEST_FILENAME for some reason appends /home to the REQUEST_FILENAME, but the current REQUEST_FILENAME is fortunately already a dir and can be checked directly