Project

General

Profile

« Previous | Next » 

Revision 9599

web/.htaccess: <dir>/all forces mod_dir listing, as a simpler syntax than ?index=1

View differences:

.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?index=1 [discardpath,last,noescape,qsappend]
69

  
67 70
# for dirs, redirect to index.* unless mod_dir listing requested with ?index=1
68 71
RewriteCond %{REQUEST_FILENAME}index -F
69 72
	# use -F subrequest so that MultiViews auto-appends any extension

Also available in: Unified diff