Revision 8407
Added by Aaron Marcuse-Kubitza over 11 years ago
.htaccess | ||
---|---|---|
9 | 9 |
# don't rewrite existing paths |
10 | 10 |
RewriteCond %{REQUEST_FILENAME} -d [ornext] |
11 | 11 |
RewriteCond %{REQUEST_FILENAME} -f |
12 |
RewriteRule ^.+$ - [discardpath,noescape,last] |
|
12 |
RewriteRule ^(?!/).+$ - [discardpath,noescape,last]
|
|
13 | 13 |
|
14 | 14 |
# handle DirectoryIndex subrequests |
15 | 15 |
RewriteRule ^index$() $1 [discardpath,noescape] |
16 | 16 |
|
17 |
RewriteRule ^.*$ terms/$0 [discardpath,noescape,last] |
|
17 |
# dir without trailing / is provided as an absolute filesystem path |
|
18 |
RewriteCond $0 ^/ [ornext] |
|
19 |
RewriteCond /$0 ^(.*)$ |
|
20 |
RewriteRule ^.+$ terms%1 [discardpath,noescape,last] |
Also available in: Unified diff
web/**/.htaccess: RewriteOptions: Redirect dir paths without the trailing / to the datasource's homepage, and let dir paths with the trailing / point to the directory index. This is the opposite of the way it was before, and is more intuitive because the trailing / indicates a directory listing, while the trailing / would generally be omitted when linking to the datasource itself.