Revision 13304
Added by Aaron Marcuse-Kubitza over 10 years ago
trunk/web/.htaccess | ||
---|---|---|
59 | 59 |
RewriteRule ^(.*/)?all$ $1 [discardpath,last,noescape,qsappend,env=mod_autoindex_listing:1] |
60 | 60 |
|
61 | 61 |
# for dirs, redirect to index.* unless mod_autoindex listing was requested |
62 |
RewriteCond %{REQUEST_FILENAME}index -F |
|
62 |
# can't use just "index" because MultiViews doesn't work in Ubuntu 14.04 |
|
63 |
RewriteCond %{REQUEST_FILENAME}index.php -F |
|
63 | 64 |
# use -F subrequest so that MultiViews auto-appends any extension |
64 | 65 |
RewriteCond %{ENV:REDIRECT_mod_autoindex_listing} ="" |
65 |
RewriteRule ^(.*/)?$ $1index [discardpath,last,noescape,qsappend] |
|
66 |
RewriteRule ^(.*/)?$ $1index.php [discardpath,last,noescape,qsappend] |
|
67 |
RewriteCond %{REQUEST_FILENAME}index.htm -F |
|
68 |
# use -F subrequest so that MultiViews auto-appends any extension |
|
69 |
RewriteCond %{ENV:REDIRECT_mod_autoindex_listing} ="" |
|
70 |
RewriteRule ^(.*/)?$ $1index.htm [discardpath,last,noescape,qsappend] |
|
66 | 71 |
|
67 | 72 |
# don't rewrite existing dirs with trailing / |
68 | 73 |
RewriteCond %{REQUEST_FILENAME} -d |
Also available in: Unified diff
bugfix: web/.htaccess: for dirs, redirect to index.*: added workaround for Ubuntu 14.04, which breaks MultiViews