Revision 8447
Added by Aaron Marcuse-Kubitza over 11 years ago
.htaccess | ||
---|---|---|
48 | 48 |
RewriteCond %{REQUEST_FILENAME} -f |
49 | 49 |
RewriteRule ^(?!/).+$ - [discardpath,noescape,last] |
50 | 50 |
|
51 |
# handle DirectoryIndex subrequests when there is no DirectoryIndex |
|
52 |
# use -F subrequest so that MultiViews auto-appends any extension |
|
53 |
RewriteCond %{REQUEST_FILENAME} !-F |
|
54 |
RewriteRule ^(.*/)?index$ $1 [discardpath,noescape] |
|
55 |
|
|
51 | 56 |
## specific to / |
52 | 57 |
|
53 | 58 |
RewriteCond %{ENV:innermost_dir} =/ |
Also available in: Unified diff
web/.htaccess: handle DirectoryIndex subrequests when there is no DirectoryIndex, by deleting the /index filename. This ensures that any fallback redirect is not invoked, and instead the action corresponding to a trailing / (usually the display of a directory listing) is performed.