Revision 9603
Added by Aaron Marcuse-Kubitza over 11 years ago
.htaccess | ||
---|---|---|
64 | 64 |
RewriteCond %{REQUEST_FILENAME}/.htaccess !-f |
65 | 65 |
RewriteRule ^.+$ %{REQUEST_URI}/ [discardpath,last,noescape,qsappend,redirect] |
66 | 66 |
|
67 |
# <dir>/all forces mod_dir listing
|
|
68 |
RewriteRule ^(.*/)?all$ $1 [discardpath,last,noescape,qsappend,env=mod_dir_listing:1]
|
|
67 |
# <dir>/all forces mod_autoindex listing
|
|
68 |
RewriteRule ^(.*/)?all$ $1 [discardpath,last,noescape,qsappend,env=mod_autoindex_listing:1]
|
|
69 | 69 |
|
70 |
# for dirs, redirect to index.* unless mod_dir listing requested previously
|
|
70 |
# for dirs, redirect to index.* unless mod_autoindex listing was requested
|
|
71 | 71 |
RewriteCond %{REQUEST_FILENAME}index -F |
72 | 72 |
# use -F subrequest so that MultiViews auto-appends any extension |
73 |
RewriteCond %{ENV:REDIRECT_mod_dir_listing} =""
|
|
73 |
RewriteCond %{ENV:REDIRECT_mod_autoindex_listing} =""
|
|
74 | 74 |
RewriteRule ^(.*/)?$ $1index [discardpath,last,noescape,qsappend] |
75 | 75 |
|
76 | 76 |
# prepend dir name if it's part of the filename (e.g. dir/file -> dir/dir.file) |
Also available in: Unified diff
bugfix: web/.htaccess: changed "mod_dir listing"->"mod_autoindex listing" because mod_dir does not actually handle the autogenerated listings