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 ^$ http://vegbank.org/get/index/dba_tabledescription [discardpath,noescape,last] |
|
17 |
# dir without trailing / is provided as an absolute filesystem path |
|
18 |
RewriteRule ^/ http://vegbank.org/get/index/dba_tabledescription [discardpath,noescape,last] |
|
18 | 19 |
RewriteRule ^([^/]+)(?:/(.*))?$ http://vegbank.org/vegbank/views/dba_tabledescription_detail.jsp?view=detail&entity=dba_tabledescription&where=where_tablename&wparam=$1#$2 [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.