Project

General

Profile

« Previous | Next » 

Revision 8363

web/main/**/.htaccess: Support dotpaths in the query string instead of in the path, so that non-dotpath paths don't need to be suffixed with / to prevent their filenames from being interpreted as dotpaths. Putting dotpaths in the query string still requires only one character between the host and the path, but it's ? instead of / . ? is in many ways more natural, because the dotpath is a non-filesystem string to be parsed rather than something that's already a filesystem path. This change also avoids the need to strip trailing /s in many RewriteRules, because the dotpath mechanism is no longer appending them.

View differences:

web/main/servers/vegbiendev/.htaccess
1 1
RewriteEngine on
2 2
RewriteOptions inherit
3 3

  
4
RewriteRule ^(.*/)?$ /.phpPgAdmin/[vegbiendev.nceas.ucsb.edu/phppgadmin]/localhost:5432:allow/$0 [discardpath,noescape,last]
4
# parse dotpath in the query string
5
RewriteCond %{QUERY_STRING} ^(?!&).+$
6
RewriteRule ^.*$ /dotpath.php%{REQUEST_URI} [discardpath,noescape,last]
7

  
8
RewriteRule ^.*$ /.phpPgAdmin/[vegbiendev.nceas.ucsb.edu/phppgadmin]/localhost:5432:allow/$0 [discardpath,noescape,last]
web/main/BIEN2/geoscrub/.htaccess
1 1
RewriteEngine on
2 2
RewriteOptions inherit
3 3

  
4
RewriteRule ^(.*/)?$ /servers/nimoy/geoscrub/$0 [discardpath,noescape,last]
4
# parse dotpath in the query string
5
RewriteCond %{QUERY_STRING} ^(?!&).+$
6
RewriteRule ^.*$ /dotpath.php%{REQUEST_URI} [discardpath,noescape,last]
7

  
8
RewriteRule ^.*$ /servers/nimoy/geoscrub/$0 [discardpath,noescape,last]
web/main/BIEN2/staging/.htaccess
1 1
RewriteEngine on
2 2
RewriteOptions inherit
3 3

  
4
RewriteRule ^(.*/)?$ /servers/nimoy/bien2_staging/$0 [discardpath,noescape,last]
4
# parse dotpath in the query string
5
RewriteCond %{QUERY_STRING} ^(?!&).+$
6
RewriteRule ^.*$ /dotpath.php%{REQUEST_URI} [discardpath,noescape,last]
7

  
8
RewriteRule ^.*$ /servers/nimoy/bien2_staging/$0 [discardpath,noescape,last]
web/main/IH/.htaccess
1 1
RewriteEngine on
2 2
RewriteOptions inherit
3 3

  
4
RewriteRule ^$           http://sweetgum.nybg.org/ih/                                                                                                                            [discardpath,noescape,last]
5
RewriteRule ^(?:(.*)/)?$ http://sweetgum.nybg.org/ih/herbarium_list.php?QueryName=DetailedQuery&Restriction=NamPartyType+\%3D+\%27IH+Herbarium\%27&col_NamOrganisationAcronym=$1 [discardpath,noescape,last]
4
# parse dotpath in the query string
5
RewriteCond %{QUERY_STRING} ^(?!&).+$
6
RewriteRule ^.*$ /dotpath.php%{REQUEST_URI} [discardpath,noescape,last]
7

  
8
RewriteRule ^$   http://sweetgum.nybg.org/ih/                                                                                                                            [discardpath,noescape,last]
9
RewriteRule ^.+$ http://sweetgum.nybg.org/ih/herbarium_list.php?QueryName=DetailedQuery&Restriction=NamPartyType+\%3D+\%27IH+Herbarium\%27&col_NamOrganisationAcronym=$0 [discardpath,noescape,last]
web/main/VegBIEN/Redmine/svn-web/.htaccess
1 1
RewriteEngine on
2 2
RewriteOptions inherit
3 3

  
4
RewriteRule ^(.*/)?$ /VegBIEN/Redmine/main/repository/entry/$0 [discardpath,noescape,last]
4
# parse dotpath in the query string
5
RewriteCond %{QUERY_STRING} ^(?!&).+$
6
RewriteRule ^.*$ /dotpath.php%{REQUEST_URI} [discardpath,noescape,last]
7

  
8
RewriteRule ^.*$ /VegBIEN/Redmine/main/repository/entry/$0 [discardpath,noescape,last]
web/main/VegBIEN/Redmine/wiki/.htaccess
1 1
RewriteEngine on
2 2
RewriteOptions inherit
3 3

  
4
RewriteRule ^$    /VegBIEN/Redmine/main/wiki/Database_development/ [discardpath,noescape,last]
5
RewriteRule ^.*/$ /VegBIEN/Redmine/main/wiki/$0                    [discardpath,noescape,last]
4
# parse dotpath in the query string
5
RewriteCond %{QUERY_STRING} ^(?!&).+$
6
RewriteRule ^.*$ /dotpath.php%{REQUEST_URI} [discardpath,noescape,last]
7

  
8
RewriteRule ^$   /VegBIEN/Redmine/main/wiki/Database_development/ [discardpath,noescape,last]
9
RewriteRule ^.+$ /VegBIEN/Redmine/main/wiki/$0                    [discardpath,noescape,last]
web/main/VegBIEN/Redmine/main/.htaccess
1 1
RewriteEngine on
2 2
RewriteOptions inherit
3 3

  
4
RewriteRule ^(?:(.*)/)?$ https://projects.nceas.ucsb.edu/nceas/projects/bien/$1 [discardpath,noescape,last]
4
# parse dotpath in the query string
5
RewriteCond %{QUERY_STRING} ^(?!&).+$
6
RewriteRule ^.*$ /dotpath.php%{REQUEST_URI} [discardpath,noescape,last]
7

  
8
RewriteRule ^.*$ https://projects.nceas.ucsb.edu/nceas/projects/bien/$0 [discardpath,noescape,last]
web/main/VegBIEN/Redmine/svn/.htaccess
1 1
RewriteEngine on
2 2
RewriteOptions inherit
3 3

  
4
RewriteRule ^(.*/)?$ /VegBIEN/Redmine/main/repository/raw/$0 [discardpath,noescape,last]
4
# parse dotpath in the query string
5
RewriteCond %{QUERY_STRING} ^(?!&).+$
6
RewriteRule ^.*$ /dotpath.php%{REQUEST_URI} [discardpath,noescape,last]
7

  
8
RewriteRule ^.*$ /VegBIEN/Redmine/main/repository/raw/$0 [discardpath,noescape,last]
web/main/VegBIEN/Redmine/.htaccess
1 1
RewriteEngine on
2 2
RewriteOptions inherit
3 3

  
4
# parse dotpath in the query string
5
RewriteCond %{QUERY_STRING} ^(?!&).+$
6
RewriteRule ^.*$ /dotpath.php%{REQUEST_URI} [discardpath,noescape,last]
7

  
4 8
# don't redirect subdir paths
5 9
RewriteCond %{DOCUMENT_ROOT}/VegBIEN/Redmine/$1 -d
6 10
RewriteRule ^([^/]+).*$ - [discardpath,noescape,last]
......
8 12
# handle DirectoryIndex (this must be at this position in the rules)
9 13
RewriteRule ^(.*/)?index\.php$ $1 [discardpath,noescape]
10 14

  
11
RewriteRule ^(.*/)?$ wiki/$0 [discardpath,noescape,last]
15
RewriteRule ^.*$ wiki/$0 [discardpath,noescape,last]
web/main/VegBIEN/db/.htaccess
1 1
RewriteEngine on
2 2
RewriteOptions inherit
3 3

  
4
RewriteRule ^(.*/)?$ /servers/vegbiendev/vegbien/public/$0 [discardpath,noescape,last]
4
# parse dotpath in the query string
5
RewriteCond %{QUERY_STRING} ^(?!&).+$
6
RewriteRule ^.*$ /dotpath.php%{REQUEST_URI} [discardpath,noescape,last]
7

  
8
RewriteRule ^.*$ /servers/vegbiendev/vegbien/public/$0 [discardpath,noescape,last]
web/main/VegBIEN/.htaccess
1 1
RewriteEngine on
2 2
RewriteOptions inherit
3 3

  
4
# parse dotpath in the query string
5
RewriteCond %{QUERY_STRING} ^(?!&).+$
6
RewriteRule ^.*$ /dotpath.php%{REQUEST_URI} [discardpath,noescape,last]
7

  
4 8
# don't redirect subdir paths
5 9
RewriteCond %{DOCUMENT_ROOT}/VegBIEN/$1 -d
6 10
RewriteRule ^([^/]+).*$ - [discardpath,noescape,last]
......
8 12
# handle DirectoryIndex (this must be at this position in the rules)
9 13
RewriteRule ^(.*/)?index\.php$ $1 [discardpath,noescape]
10 14

  
11
RewriteRule ^(.*/)?$ db/$0 [discardpath,noescape,last]
15
RewriteRule ^.*$ db/$0 [discardpath,noescape,last]
web/main/TNRS/.htaccess
1 1
RewriteEngine on
2 2
RewriteOptions inherit
3 3

  
4
RewriteRule ^(?:(.*)/)?$ http://tnrs.iplantcollaborative.org/instructions.html?$1#download_results [discardpath,noescape,last]
4
# parse dotpath in the query string
5
RewriteCond %{QUERY_STRING} ^(?!&).+$
6
RewriteRule ^.*$ /dotpath.php%{REQUEST_URI} [discardpath,noescape,last]
7

  
8
RewriteRule ^.*$ http://tnrs.iplantcollaborative.org/instructions.html?$0#download_results [discardpath,noescape,last]
web/main/TCS/.htaccess
1 1
RewriteEngine on
2 2
RewriteOptions inherit
3 3

  
4
RewriteRule ^(?:(.*)/)?$ http://www.tdwg.org/standards/117/download/#/v101.xsd#$1 [discardpath,noescape,last]
4
# parse dotpath in the query string
5
RewriteCond %{QUERY_STRING} ^(?!&).+$
6
RewriteRule ^.*$ /dotpath.php%{REQUEST_URI} [discardpath,noescape,last]
7

  
8
RewriteRule ^.*$ http://www.tdwg.org/standards/117/download/#/v101.xsd#$0 [discardpath,noescape,last]
web/main/CTFS/schema/.htaccess
1 1
RewriteEngine on
2 2
RewriteOptions inherit
3 3

  
4
RewriteRule ^(?:(.*)/)?$ /Redmine/svn/inputs/CTFS/_archive/DBv5.txt/#$1 [discardpath,noescape,last,redirect]
4
# parse dotpath in the query string
5
RewriteCond %{QUERY_STRING} ^(?!&).+$
6
RewriteRule ^.*$ /dotpath.php%{REQUEST_URI} [discardpath,noescape,last]
7

  
8
RewriteRule ^.*$ /Redmine/svn/inputs/CTFS/_archive/DBv5.txt/#$0 [discardpath,noescape,last,redirect]
web/main/CTFS/tables/.htaccess
1 1
RewriteEngine on
2 2
RewriteOptions inherit
3 3

  
4
RewriteRule ^(?:(.*)/)?$ /Redmine/wiki/CTFS/?$1#Tables [discardpath,noescape,last,redirect]
4
# parse dotpath in the query string
5
RewriteCond %{QUERY_STRING} ^(?!&).+$
6
RewriteRule ^.*$ /dotpath.php%{REQUEST_URI} [discardpath,noescape,last]
7

  
8
RewriteRule ^.*$ /Redmine/wiki/CTFS/?$0#Tables [discardpath,noescape,last,redirect]
web/main/CTFS/terms/.htaccess
1 1
RewriteEngine on
2 2
RewriteOptions inherit
3 3

  
4
RewriteRule ^(?:(.*)/)?$ /Redmine/svn/inputs/CTFS/_src/ctfs-comments_worksheet.xls/#$1 [discardpath,noescape,last,redirect]
4
# parse dotpath in the query string
5
RewriteCond %{QUERY_STRING} ^(?!&).+$
6
RewriteRule ^.*$ /dotpath.php%{REQUEST_URI} [discardpath,noescape,last]
7

  
8
RewriteRule ^.*$ /Redmine/svn/inputs/CTFS/_src/ctfs-comments_worksheet.xls/#$0 [discardpath,noescape,last,redirect]
web/main/CTFS/.htaccess
1 1
RewriteEngine on
2 2
RewriteOptions inherit
3 3

  
4
# parse dotpath in the query string
5
RewriteCond %{QUERY_STRING} ^(?!&).+$
6
RewriteRule ^.*$ /dotpath.php%{REQUEST_URI} [discardpath,noescape,last]
7

  
4 8
# don't redirect subdir paths
5 9
RewriteCond %{DOCUMENT_ROOT}/CTFS/$1 -d
6 10
RewriteRule ^([^/]+).*$ - [discardpath,noescape,last]
......
8 12
# handle DirectoryIndex (this must be at this position in the rules)
9 13
RewriteRule ^(.*/)?index\.php$ $1 [discardpath,noescape]
10 14

  
11
RewriteRule ^(.*/)?$ schema/$0 [discardpath,noescape,last]
15
RewriteRule ^.*$ schema/$0 [discardpath,noescape,last]
web/main/SALVIAS/users/.htaccess
1 1
RewriteEngine on
2 2
RewriteOptions inherit
3 3

  
4
RewriteRule ^(.*/)?$ /servers/nimoy/salvias_users/$0 [discardpath,noescape,last]
4
# parse dotpath in the query string
5
RewriteCond %{QUERY_STRING} ^(?!&).+$
6
RewriteRule ^.*$ /dotpath.php%{REQUEST_URI} [discardpath,noescape,last]
7

  
8
RewriteRule ^.*$ /servers/nimoy/salvias_users/$0 [discardpath,noescape,last]
web/main/SALVIAS/db/.htaccess
1 1
RewriteEngine on
2 2
RewriteOptions inherit
3 3

  
4
RewriteRule ^(.*/)?$ /servers/nimoy/salvias_plots/$0 [discardpath,noescape,last]
4
# parse dotpath in the query string
5
RewriteCond %{QUERY_STRING} ^(?!&).+$
6
RewriteRule ^.*$ /dotpath.php%{REQUEST_URI} [discardpath,noescape,last]
7

  
8
RewriteRule ^.*$ /servers/nimoy/salvias_plots/$0 [discardpath,noescape,last]
web/main/SALVIAS/dd/.htaccess
1 1
RewriteEngine on
2 2
RewriteOptions inherit
3 3

  
4
RewriteRule ^(?!Plot_)(.+)/$ Plot_$1 [discardpath,noescape]
5
RewriteRule ^(?:(.*)/)?$ http://salvias.net/Documents/salvias_data_dictionary.html#$1 [discardpath,noescape,last]
4
# parse dotpath in the query string
5
RewriteCond %{QUERY_STRING} ^(?!&).+$
6
RewriteRule ^.*$ /dotpath.php%{REQUEST_URI} [discardpath,noescape,last]
7

  
8
RewriteRule ^(?!Plot_)(.+)$ Plot_$1 [discardpath,noescape]
9
RewriteRule ^.*$ http://salvias.net/Documents/salvias_data_dictionary.html#$0 [discardpath,noescape,last]
web/main/SALVIAS/.htaccess
1 1
RewriteEngine on
2 2
RewriteOptions inherit
3 3

  
4
# parse dotpath in the query string
5
RewriteCond %{QUERY_STRING} ^(?!&).+$
6
RewriteRule ^.*$ /dotpath.php%{REQUEST_URI} [discardpath,noescape,last]
7

  
4 8
# don't redirect subdir paths
5 9
RewriteCond %{DOCUMENT_ROOT}/SALVIAS/$1 -d
6 10
RewriteRule ^([^/]+).*$ - [discardpath,noescape,last]
......
8 12
# handle DirectoryIndex (this must be at this position in the rules)
9 13
RewriteRule ^(.*/)?index\.php$ $1 [discardpath,noescape]
10 14

  
11
RewriteRule ^(.*/)?$ dd/$0 [discardpath,noescape,last]
15
RewriteRule ^.*$ dd/$0 [discardpath,noescape,last]
web/main/.phpPgAdmin/.htaccess
1 1
RewriteEngine on
2 2
RewriteOptions inherit
3 3

  
4
RewriteRule ^\[(.*)\]/([^/]*)/([^/]*)/([^/]*)/([^/]*)/(.+)/$ http://$1/redirect.php?server=$2&database=$3&schema=$4&table=$5&column=$6&subject=column [discardpath,noescape,last,redirect]
5
RewriteRule ^\[(.*)\]/([^/]*)/([^/]*)/([^/]*)/(.+)/$         http://$1/redirect.php?server=$2&database=$3&schema=$4&table=$5&subject=table            [discardpath,noescape,last,redirect]
6
RewriteRule ^\[(.*)\]/([^/]*)/([^/]*)/(.+)/$                 http://$1/redirect.php?server=$2&database=$3&schema=$4&subject=schema                    [discardpath,noescape,last,redirect]
7
RewriteRule ^\[(.*)\]/([^/]*)/(.+)/$                         http://$1/redirect.php?server=$2&database=$3&subject=database                            [discardpath,noescape,last,redirect]
8
RewriteRule ^\[(.*)\]/(.+)/$                                 http://$1/redirect.php?server=$2&subject=server                                          [discardpath,noescape,last,redirect]
9
RewriteRule ^\[(.*)\]/$                                      http://$1/redirect.php?subject=root                                                      [discardpath,noescape,last,redirect]
4
# parse dotpath in the query string
5
RewriteCond %{QUERY_STRING} ^(?!&).+$
6
RewriteRule ^.*$ /dotpath.php%{REQUEST_URI} [discardpath,noescape,last]
7

  
8
RewriteRule ^\[(.*)\]/([^/]*)/([^/]*)/([^/]*)/([^/]*)/(.+?)/?$ http://$1/redirect.php?server=$2&database=$3&schema=$4&table=$5&column=$6&subject=column [discardpath,noescape,last,redirect]
9
RewriteRule ^\[(.*)\]/([^/]*)/([^/]*)/([^/]*)/(.+?)/?$         http://$1/redirect.php?server=$2&database=$3&schema=$4&table=$5&subject=table            [discardpath,noescape,last,redirect]
10
RewriteRule ^\[(.*)\]/([^/]*)/([^/]*)/(.+?)/?$                 http://$1/redirect.php?server=$2&database=$3&schema=$4&subject=schema                    [discardpath,noescape,last,redirect]
11
RewriteRule ^\[(.*)\]/([^/]*)/(.+?)/?$                         http://$1/redirect.php?server=$2&database=$3&subject=database                            [discardpath,noescape,last,redirect]
12
RewriteRule ^\[(.*)\]/(.+?)/?$                                 http://$1/redirect.php?server=$2&subject=server                                          [discardpath,noescape,last,redirect]
13
RewriteRule ^\[(.*)\]/?$                                       http://$1/redirect.php?subject=root                                                      [discardpath,noescape,last,redirect]
web/main/VegX/.htaccess
1 1
RewriteEngine on
2 2
RewriteOptions inherit
3 3

  
4
RewriteRule ^(?:(.*)/)?$ http://wiki.tdwg.org/twiki/pub/Vegetation/WebHome/VegX_Schema_1.5.3_proposed.zip#/veg.xsd#$1 [discardpath,noescape,last]
4
# parse dotpath in the query string
5
RewriteCond %{QUERY_STRING} ^(?!&).+$
6
RewriteRule ^.*$ /dotpath.php%{REQUEST_URI} [discardpath,noescape,last]
7

  
8
RewriteRule ^.*$ http://wiki.tdwg.org/twiki/pub/Vegetation/WebHome/VegX_Schema_1.5.3_proposed.zip#/veg.xsd#$0 [discardpath,noescape,last]
web/main/.htaccess
28 28
RewriteCond %{DOCUMENT_ROOT}/%0 -d
29 29
RewriteRule ^([^/]*)(/.*)$ %0$2 [discardpath,noescape]
30 30

  
31
# don't rewrite existing paths
32
RewriteCond %{REQUEST_FILENAME} -d [ornext]
33
RewriteCond %{REQUEST_FILENAME} -f
34
RewriteRule ^.*$ - [discardpath,noescape,last]
31
# parse dotpath in the query string
32
RewriteRule ^dotpath - [discardpath,noescape,last]
33
RewriteCond %{QUERY_STRING} ^(?!&).+$
34
RewriteRule ^.*$ /dotpath.php%{REQUEST_URI} [discardpath,noescape,last]
35 35

  
36 36
# don't redirect subdir paths
37 37
RewriteCond %{DOCUMENT_ROOT}/$1 -d
38 38
RewriteRule ^([^/]+).*$ - [discardpath,noescape,last]
39 39

  
40
# handle DirectoryIndex (this must be at this position in the rules)
41
RewriteRule ^(.*/)?index\.php$ $1 [discardpath,noescape]
40
# don't rewrite existing paths
41
RewriteCond %{REQUEST_FILENAME} -d [ornext]
42
RewriteCond %{REQUEST_FILENAME} -f
43
RewriteRule ^.*$ - [discardpath,noescape,last]
42 44

  
43
## translate dotpaths (after the last /) to /-paths, e.g. d/a.[b.c] -> d/a/b.c/
44
# replace all unescaped . with / , e.g. a.[b.c] -> a/[b.c]
45
# remove any [] escape, e.g. a.b=[c.d] -> a/b=c.d (the ] must be at the end)
46
# if no . suffix, seal /-path so the filename is not reinterpreted as a dotpath
47
# e.g. a/[b.c] -> a/[b.c]/ so it doesn't become a/b/c after []-unescaping
48
# this is needed because mod_rewrite often runs the same rules again
49
RewriteRule ^(.*/)?(?=.)(\.?[^./]*?)(?:\[([^\[\]/]*)\])?(?:\.([^/]*))?$ $1$2$3/$4 [discardpath,noescape,next]
50
	# discardpath: avoids infinite loop by not reappending PATH_INFO (filename)
51

  
52 45
## specific to /
53 46

  
54
RewriteRule ^(?:(.*)/)?$ https://projects.nceas.ucsb.edu/nceas/projects/bien/wiki/VegCore#$1 [discardpath,noescape,last]
47
RewriteRule ^.*$ https://projects.nceas.ucsb.edu/nceas/projects/bien/wiki/VegCore#$0 [discardpath,noescape,last]
web/main/DwC/history/.htaccess
1 1
RewriteEngine on
2 2
RewriteOptions inherit
3 3

  
4
RewriteRule ^(?:(.*)/)?$ http://rs.tdwg.org/dwc/terms/history/#$1 [discardpath,noescape,last]
4
# parse dotpath in the query string
5
RewriteCond %{QUERY_STRING} ^(?!&).+$
6
RewriteRule ^.*$ /dotpath.php%{REQUEST_URI} [discardpath,noescape,last]
7

  
8
RewriteRule ^.*$ http://rs.tdwg.org/dwc/terms/history/#$0 [discardpath,noescape,last]
web/main/DwC/terms/.htaccess
1 1
RewriteEngine on
2 2
RewriteOptions inherit
3 3

  
4
RewriteRule ^(?:(.*)/)?$ http://rs.tdwg.org/dwc/terms/#$1 [discardpath,noescape,last]
4
# parse dotpath in the query string
5
RewriteCond %{QUERY_STRING} ^(?!&).+$
6
RewriteRule ^.*$ /dotpath.php%{REQUEST_URI} [discardpath,noescape,last]
7

  
8
RewriteRule ^.*$ http://rs.tdwg.org/dwc/terms/#$0 [discardpath,noescape,last]
web/main/DwC/.htaccess
1 1
RewriteEngine on
2 2
RewriteOptions inherit
3 3

  
4
# parse dotpath in the query string
5
RewriteCond %{QUERY_STRING} ^(?!&).+$
6
RewriteRule ^.*$ /dotpath.php%{REQUEST_URI} [discardpath,noescape,last]
7

  
4 8
# don't redirect subdir paths
5 9
RewriteCond %{DOCUMENT_ROOT}/DwC/$1 -d
6 10
RewriteRule ^([^/]+).*$ - [discardpath,noescape,last]
......
8 12
# handle DirectoryIndex (this must be at this position in the rules)
9 13
RewriteRule ^(.*/)?index\.php$ $1 [discardpath,noescape]
10 14

  
11
RewriteRule ^(.*/)?$ terms/$0 [discardpath,noescape,last]
15
RewriteRule ^.*$ terms/$0 [discardpath,noescape,last]
web/main/.phpMyAdmin/.htaccess
1 1
RewriteEngine on
2 2
RewriteOptions inherit
3 3

  
4
RewriteRule ^\[(.*)\]/([^/]*)/([^/]*)/(.+)/$ http://$1/?db=$2&table=$3&column=$4&target=tbl_structure.php [discardpath,noescape,last,redirect]
5
RewriteRule ^\[(.*)\]/([^/]*)/(.+)/$         http://$1/?db=$2&table=$3&target=tbl_structure.php           [discardpath,noescape,last,redirect]
6
RewriteRule ^\[(.*)\]/(.+)/$                 http://$1/?db=$2&target=db_structure.php                     [discardpath,noescape,last,redirect]
7
RewriteRule ^\[(.*)\]/$                      http://$1/?target=server_databases.php                       [discardpath,noescape,last,redirect]
4
# parse dotpath in the query string
5
RewriteCond %{QUERY_STRING} ^(?!&).+$
6
RewriteRule ^.*$ /dotpath.php%{REQUEST_URI} [discardpath,noescape,last]
7

  
8
RewriteRule ^\[(.*)\]/([^/]*)/([^/]*)/(.+?)/?$ http://$1/?db=$2&table=$3&column=$4&target=tbl_structure.php [discardpath,noescape,last,redirect]
9
RewriteRule ^\[(.*)\]/([^/]*)/(.+?)/?$         http://$1/?db=$2&table=$3&target=tbl_structure.php           [discardpath,noescape,last,redirect]
10
RewriteRule ^\[(.*)\]/(.+?)/?$                 http://$1/?db=$2&target=db_structure.php                     [discardpath,noescape,last,redirect]
11
RewriteRule ^\[(.*)\]/?$                       http://$1/?target=server_databases.php                       [discardpath,noescape,last,redirect]
web/main/servers/nimoy/.htaccess
1 1
RewriteEngine on
2 2
RewriteOptions inherit
3 3

  
4
RewriteRule ^(.*/)?$ /.phpMyAdmin/[nimoy.nceas.ucsb.edu/phpmyadmin]/$0 [discardpath,noescape,last]
4
# parse dotpath in the query string
5
RewriteCond %{QUERY_STRING} ^(?!&).+$
6
RewriteRule ^.*$ /dotpath.php%{REQUEST_URI} [discardpath,noescape,last]
7

  
8
RewriteRule ^.*$ /.phpMyAdmin/[nimoy.nceas.ucsb.edu/phpmyadmin]/$0 [discardpath,noescape,last]
web/main/BIEN2/core/.htaccess
1 1
RewriteEngine on
2 2
RewriteOptions inherit
3 3

  
4
RewriteRule ^(.*/)?$ /servers/nimoy/bien2/$0 [discardpath,noescape,last]
4
# parse dotpath in the query string
5
RewriteCond %{QUERY_STRING} ^(?!&).+$
6
RewriteRule ^.*$ /dotpath.php%{REQUEST_URI} [discardpath,noescape,last]
7

  
8
RewriteRule ^.*$ /servers/nimoy/bien2/$0 [discardpath,noescape,last]
web/main/BIEN2/.htaccess
1 1
RewriteEngine on
2 2
RewriteOptions inherit
3 3

  
4
# parse dotpath in the query string
5
RewriteCond %{QUERY_STRING} ^(?!&).+$
6
RewriteRule ^.*$ /dotpath.php%{REQUEST_URI} [discardpath,noescape,last]
7

  
4 8
# don't redirect subdir paths
5 9
RewriteCond %{DOCUMENT_ROOT}/BIEN2/$1 -d
6 10
RewriteRule ^([^/]+).*$ - [discardpath,noescape,last]
......
8 12
# handle DirectoryIndex (this must be at this position in the rules)
9 13
RewriteRule ^(.*/)?index\.php$ $1 [discardpath,noescape]
10 14

  
11
RewriteRule ^(.*/)?$ web/$0 [discardpath,noescape,last]
15
RewriteRule ^.*$ web/$0 [discardpath,noescape,last]
web/main/BIEN2/web/.htaccess
1 1
RewriteEngine on
2 2
RewriteOptions inherit
3 3

  
4
RewriteRule ^(.*/)?$ /servers/nimoy/bien_web/$0 [discardpath,noescape,last]
4
# parse dotpath in the query string
5
RewriteCond %{QUERY_STRING} ^(?!&).+$
6
RewriteRule ^.*$ /dotpath.php%{REQUEST_URI} [discardpath,noescape,last]
7

  
8
RewriteRule ^.*$ /servers/nimoy/bien_web/$0 [discardpath,noescape,last]
web/main/VegBank/.htaccess
1 1
RewriteEngine on
2 2
RewriteOptions inherit
3 3

  
4
RewriteRule ^$                   http://vegbank.org/get/index/dba_tabledescription                                                                                           [discardpath,noescape,last]
5
RewriteRule ^([^/]+)/(?:(.*)/)?$ http://vegbank.org/vegbank/views/dba_tabledescription_detail.jsp?view=detail&entity=dba_tabledescription&where=where_tablename&wparam=$1#$2 [discardpath,noescape,last]
4
# parse dotpath in the query string
5
RewriteCond %{QUERY_STRING} ^(?!&).+$
6
RewriteRule ^.*$ /dotpath.php%{REQUEST_URI} [discardpath,noescape,last]
7

  
8
RewriteRule ^$             http://vegbank.org/get/index/dba_tabledescription                                                                                           [discardpath,noescape,last]
9
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