Project

General

Profile

« Previous | Next » 

Revision 8450

web/**/.htaccess: Use [qsappend] flag with all RewriteRules to ensure that the original query string is never lost

View differences:

web/aggregators/.htaccess
6 6

  
7 7
# dir without trailing / is provided as an absolute filesystem path
8 8
RewriteCond %{ENV:innermost_dir} =aggregators
9
RewriteRule ^/() $1 [discardpath,noescape,last,redirect]
9
RewriteRule ^/() $1 [discardpath,noescape,last,redirect,qsappend]
web/.phpMyAdmin/.htaccess
3 3

  
4 4
SetEnvIf Request_URI ^ innermost_dir=phpMyAdmin
5 5

  
6
RewriteRule ^\[(.*)\]/([^/]*)/([^/]*)/(.+?)/?$ http://$1/?db=$2&table=$3&column=$4&target=tbl_structure.php [discardpath,noescape,last,redirect]
7
RewriteRule ^\[(.*)\]/([^/]*)/(.+?)/?$         http://$1/?db=$2&table=$3&target=tbl_structure.php           [discardpath,noescape,last,redirect]
8
RewriteRule ^\[(.*)\]/(.+?)/?$                 http://$1/?db=$2&target=db_structure.php                     [discardpath,noescape,last,redirect]
9
RewriteRule ^\[(.*)\]/?$                       http://$1/?target=server_databases.php                       [discardpath,noescape,last,redirect]
6
RewriteRule ^\[(.*)\]/([^/]*)/([^/]*)/(.+?)/?$ http://$1/?db=$2&table=$3&column=$4&target=tbl_structure.php [discardpath,noescape,last,redirect,qsappend]
7
RewriteRule ^\[(.*)\]/([^/]*)/(.+?)/?$         http://$1/?db=$2&table=$3&target=tbl_structure.php           [discardpath,noescape,last,redirect,qsappend]
8
RewriteRule ^\[(.*)\]/(.+?)/?$                 http://$1/?db=$2&target=db_structure.php                     [discardpath,noescape,last,redirect,qsappend]
9
RewriteRule ^\[(.*)\]/?$                       http://$1/?target=server_databases.php                       [discardpath,noescape,last,redirect,qsappend]
web/servers/vegbiendev/db/.htaccess
7 7
RewriteCond %{ENV:innermost_dir} =db
8 8
RewriteCond $0 ^/ [ornext]
9 9
RewriteCond /$0 ^(.*)$
10
RewriteRule ^.+$ /.phpPgAdmin/[vegbiendev.nceas.ucsb.edu/phppgadmin]/localhost:5432:allow%1 [discardpath,noescape,last]
10
RewriteRule ^.+$ /.phpPgAdmin/[vegbiendev.nceas.ucsb.edu/phppgadmin]/localhost:5432:allow%1 [discardpath,noescape,last,qsappend]
.htaccess
6 6

  
7 7
# dir without trailing / is provided as an absolute filesystem path
8 8
RewriteCond %{ENV:innermost_dir} =fs
9
RewriteRule ^/() $1 [discardpath,noescape,last,redirect]
9
RewriteRule ^/() $1 [discardpath,noescape,last,redirect,qsappend]
web/aggregators/BIEN2/core/.htaccess
7 7
RewriteCond %{ENV:innermost_dir} =core
8 8
RewriteCond $0 ^/ [ornext]
9 9
RewriteCond /$0 ^(.*)$
10
RewriteRule ^.+$ /servers/nimoy/bien2%1 [discardpath,noescape,last]
10
RewriteRule ^.+$ /servers/nimoy/bien2%1 [discardpath,noescape,last,qsappend]
web/aggregators/BIEN2/.htaccess
7 7
RewriteCond %{ENV:innermost_dir} =BIEN2
8 8
RewriteCond $0 ^/ [ornext]
9 9
RewriteCond /$0 ^(.*)$
10
RewriteRule ^.+$ web%1 [discardpath,noescape,last]
10
RewriteRule ^.+$ web%1 [discardpath,noescape,last,qsappend]
web/aggregators/BIEN2/web/.htaccess
7 7
RewriteCond %{ENV:innermost_dir} =web
8 8
RewriteCond $0 ^/ [ornext]
9 9
RewriteCond /$0 ^(.*)$
10
RewriteRule ^.+$ /servers/nimoy/bien_web%1 [discardpath,noescape,last]
10
RewriteRule ^.+$ /servers/nimoy/bien_web%1 [discardpath,noescape,last,qsappend]
web/aggregators/IH/.htaccess
7 7
RewriteCond %{ENV:innermost_dir} =IH
8 8
RewriteCond $0 ^/ [ornext]
9 9
RewriteCond herbarium_list.php?QueryName=DetailedQuery&Restriction=NamPartyType+\%3D+\%27IH+Herbarium\%27&col_NamOrganisationAcronym=$0 ^(.*)$
10
RewriteRule ^.+$ http://sweetgum.nybg.org/ih/%1 [discardpath,noescape,last]
10
RewriteRule ^.+$ http://sweetgum.nybg.org/ih/%1 [discardpath,noescape,last,qsappend]
web/.htaccess
14 14

  
15 15
# remove www subdomain
16 16
RewriteCond %{HTTP_HOST} ^www\.(.*)$
17
RewriteRule ^.*$ %{REQUEST_SCHEME}://%1%{REQUEST_URI} [discardpath,noescape,last]
17
RewriteRule ^.*$ %{REQUEST_SCHEME}://%1%{REQUEST_URI} [discardpath,noescape,last,qsappend]
18 18

  
19 19
# remove linewraps used to create a newline for Google spreadsheets
20
RewriteRule ^_-(.*)$ /$1 [discardpath,noescape,last,redirect]
20
RewriteRule ^_-(.*)$ /$1 [discardpath,noescape,last,redirect,qsappend]
21 21

  
22 22
# set REQUEST_URI_NO_SLASH
23 23
RewriteCond %{REQUEST_URI} ^/$ [ornext]
......
27 27
# translate subdomain to path
28 28
RewriteCond %{HTTP_HOST} !=vegbiendev.nceas.ucsb.edu
29 29
RewriteCond %{HTTP_HOST} ^(.*)\.([^.]*\.[^.]*)$
30
RewriteRule ^.*$ %{REQUEST_SCHEME}://%2/${subdomain2path:%1}%{ENV:REQUEST_URI_no_/} [discardpath,noescape,last]
30
RewriteRule ^.*$ %{REQUEST_SCHEME}://%2/${subdomain2path:%1}%{ENV:REQUEST_URI_no_/} [discardpath,noescape,last,qsappend]
31 31

  
32 32
# use separate lowercase version when available
33 33
RewriteCond %{ENV:innermost_dir} =/
34 34
RewriteCond %{DOCUMENT_ROOT}/$1 !-d
35 35
RewriteCond .${tolower:$1} ^.*$
36 36
RewriteCond %{DOCUMENT_ROOT}/%0 -d
37
RewriteRule ^([^/]*)(.*)$ %0$2 [discardpath,noescape,last]
37
RewriteRule ^([^/]*)(.*)$ %0$2 [discardpath,noescape,last,qsappend]
38 38
	# last: rewrite in the new subdir instead of applying this dir's rules
39 39

  
40 40
# parse dotpath in the query string
41
RewriteRule ^dotpath - [discardpath,noescape,last]
41
RewriteRule ^dotpath - [discardpath,noescape,last,qsappend]
42 42
RewriteCond %{QUERY_STRING} ^(?!&).+$
43 43
RewriteCond %{REQUEST_URI} ^(.*?)(?:/index(?:\.\w+)?)?$
44
RewriteRule ^.*$ /dotpath%1 [discardpath,noescape,last]
44
RewriteRule ^.*$ /dotpath%1 [discardpath,noescape,last,qsappend]
45 45

  
46 46
# don't rewrite existing paths
47 47
RewriteCond %{REQUEST_FILENAME} -d [ornext]
48 48
RewriteCond %{REQUEST_FILENAME} -f
49
RewriteRule ^(?!/).+$ - [discardpath,noescape,last]
49
RewriteRule ^(?!/).+$ - [discardpath,noescape,last,qsappend]
50 50

  
51 51
# handle DirectoryIndex subrequests when there is no DirectoryIndex
52 52
# use -F subrequest so that MultiViews auto-appends any extension
53 53
RewriteCond %{REQUEST_FILENAME} !-F
54
RewriteRule ^(.*/)?index$ $1 [discardpath,noescape]
54
RewriteRule ^(.*/)?index$ $1 [discardpath,noescape,qsappend]
55 55

  
56 56
## specific to /
57 57

  
58 58
RewriteCond %{ENV:innermost_dir} =/
59
RewriteRule ^.+$ /VegCore/$0 [discardpath,noescape,last]
59
RewriteRule ^.+$ /VegCore/$0 [discardpath,noescape,last,qsappend]
web/servers/nimoy/.htaccess
7 7
RewriteCond %{ENV:innermost_dir} =nimoy
8 8
RewriteCond $0 ^/ [ornext]
9 9
RewriteCond /$0 ^(.*)$
10
RewriteRule ^.+$ /.phpMyAdmin/[nimoy.nceas.ucsb.edu/phpmyadmin]%1 [discardpath,noescape,last]
10
RewriteRule ^.+$ /.phpMyAdmin/[nimoy.nceas.ucsb.edu/phpmyadmin]%1 [discardpath,noescape,last,qsappend]
inputs/VegBIEN/Redmine/svn-web/.htaccess
8 8
RewriteCond %{ENV:innermost_dir} =svn-web
9 9
RewriteCond $0 ^/ [ornext]
10 10
RewriteCond /$0 ^(.*)$
11
RewriteRule ^.+$ ../main/repository/entry%1 [discardpath,noescape,last]
11
RewriteRule ^.+$ ../main/repository/entry%1 [discardpath,noescape,last,qsappend]
inputs/VegBIEN/Redmine/wiki/.htaccess
8 8
RewriteCond %{ENV:innermost_dir} =wiki
9 9
RewriteCond $0 ^(?!/)(.+)$ [ornext]
10 10
RewriteCond Database_development ^(.*)$
11
RewriteRule ^.+$ ../main/wiki/%1 [discardpath,noescape,last]
11
RewriteRule ^.+$ ../main/wiki/%1 [discardpath,noescape,last,qsappend]
inputs/VegBIEN/Redmine/main/.htaccess
7 7
RewriteCond %{ENV:innermost_dir} =main
8 8
RewriteCond $0 ^/ [ornext]
9 9
RewriteCond /$0 ^(.*)$
10
RewriteRule ^.+$ https://projects.nceas.ucsb.edu/nceas/projects/bien%1 [discardpath,noescape,last]
10
RewriteRule ^.+$ https://projects.nceas.ucsb.edu/nceas/projects/bien%1 [discardpath,noescape,last,qsappend]
inputs/VegBIEN/Redmine/svn/.htaccess
8 8
RewriteCond %{ENV:innermost_dir} =svn
9 9
RewriteCond $0 ^/ [ornext]
10 10
RewriteCond /$0 ^(.*)$
11
RewriteRule ^.+$ ../main/repository/raw%1 [discardpath,noescape,last]
11
RewriteRule ^.+$ ../main/repository/raw%1 [discardpath,noescape,last,qsappend]
inputs/VegBIEN/Redmine/.htaccess
7 7
RewriteCond %{ENV:innermost_dir} =Redmine
8 8
RewriteCond $0 ^/ [ornext]
9 9
RewriteCond /$0 ^(.*)$
10
RewriteRule ^.+$ wiki%1 [discardpath,noescape,last]
10
RewriteRule ^.+$ wiki%1 [discardpath,noescape,last,qsappend]
inputs/VegBIEN/db/.htaccess
7 7
RewriteCond %{ENV:innermost_dir} =db
8 8
RewriteCond $0 ^/ [ornext]
9 9
RewriteCond /$0 ^(.*)$
10
RewriteRule ^.+$ /servers/vegbiendev/vegbien/public%1 [discardpath,noescape,last]
10
RewriteRule ^.+$ /servers/vegbiendev/vegbien/public%1 [discardpath,noescape,last,qsappend]
inputs/VegBIEN/.htaccess
7 7
RewriteCond %{ENV:innermost_dir} =VegBIEN
8 8
RewriteCond $0 ^/ [ornext]
9 9
RewriteCond /$0 ^(.*)$
10
RewriteRule ^.+$ db%1 [discardpath,noescape,last]
10
RewriteRule ^.+$ db%1 [discardpath,noescape,last,qsappend]
inputs/CTFS/terms/.htaccess
8 8
RewriteCond %{ENV:innermost_dir} =terms
9 9
RewriteCond $0 ^/ [ornext]
10 10
RewriteCond #$0 ^(.*)$
11
RewriteRule ^.+$ ../_src/ctfs-comments_worksheet.xls%1 [discardpath,noescape,last,redirect]
11
RewriteRule ^.+$ ../_src/ctfs-comments_worksheet.xls%1 [discardpath,noescape,last,redirect,qsappend]
inputs/CTFS/schema/.htaccess
8 8
RewriteCond %{ENV:innermost_dir} =schema
9 9
RewriteCond $0 ^/ [ornext]
10 10
RewriteCond #$0 ^(.*)$
11
RewriteRule ^.+$ ../_archive/DBv5.txt%1 [discardpath,noescape,last,redirect]
11
RewriteRule ^.+$ ../_archive/DBv5.txt%1 [discardpath,noescape,last,redirect,qsappend]
inputs/CTFS/tables/.htaccess
7 7
RewriteCond %{ENV:innermost_dir} =tables
8 8
RewriteCond $0 ^/ [ornext]
9 9
RewriteCond ?&$0 ^(.*)$
10
RewriteRule ^.+$ /wiki/CTFS%1#Tables [discardpath,noescape,last,redirect]
10
RewriteRule ^.+$ /wiki/CTFS%1#Tables [discardpath,noescape,last,redirect,qsappend]
inputs/CTFS/.htaccess
7 7
RewriteCond %{ENV:innermost_dir} =CTFS
8 8
RewriteCond $0 ^/ [ornext]
9 9
RewriteCond /$0 ^(.*)$
10
RewriteRule ^.+$ schema%1 [discardpath,noescape,last]
10
RewriteRule ^.+$ schema%1 [discardpath,noescape,last,qsappend]
inputs/SALVIAS/db/.htaccess
7 7
RewriteCond %{ENV:innermost_dir} =db
8 8
RewriteCond $0 ^/ [ornext]
9 9
RewriteCond /$0 ^(.*)$
10
RewriteRule ^.+$ /servers/nimoy/salvias_plots%1 [discardpath,noescape,last]
10
RewriteRule ^.+$ /servers/nimoy/salvias_plots%1 [discardpath,noescape,last,qsappend]
inputs/SALVIAS/dd/.htaccess
3 3

  
4 4
SetEnvIf Request_URI ^ innermost_dir=dd
5 5

  
6
RewriteRule ^(?!/)(?!Plot_)(.+)$ Plot_$1 [discardpath,noescape]
6
RewriteRule ^(?!/)(?!Plot_)(.+)$ Plot_$1 [discardpath,noescape,qsappend]
7 7
# dir without trailing / is provided as an absolute filesystem path
8 8
RewriteCond %{ENV:innermost_dir} =dd
9 9
RewriteCond $0 ^/ [ornext]
10 10
RewriteCond #$0 ^(.*)$
11
RewriteRule ^.+$ http://salvias.net/Documents/salvias_data_dictionary.html%1 [discardpath,noescape,last]
11
RewriteRule ^.+$ http://salvias.net/Documents/salvias_data_dictionary.html%1 [discardpath,noescape,last,qsappend]
inputs/SALVIAS/users/.htaccess
7 7
RewriteCond %{ENV:innermost_dir} =users
8 8
RewriteCond $0 ^/ [ornext]
9 9
RewriteCond /$0 ^(.*)$
10
RewriteRule ^.+$ /servers/nimoy/salvias_users%1 [discardpath,noescape,last]
10
RewriteRule ^.+$ /servers/nimoy/salvias_users%1 [discardpath,noescape,last,qsappend]
inputs/SALVIAS/.htaccess
7 7
RewriteCond %{ENV:innermost_dir} =SALVIAS
8 8
RewriteCond $0 ^/ [ornext]
9 9
RewriteCond /$0 ^(.*)$
10
RewriteRule ^.+$ dd%1 [discardpath,noescape,last]
10
RewriteRule ^.+$ dd%1 [discardpath,noescape,last,qsappend]
inputs/.htaccess
6 6

  
7 7
# dir without trailing / is provided as an absolute filesystem path
8 8
RewriteCond %{ENV:innermost_dir} =datasources
9
RewriteRule ^/() $1 [discardpath,noescape,last,redirect]
9
RewriteRule ^/() $1 [discardpath,noescape,last,redirect,qsappend]
inputs/.TNRS/.htaccess
7 7
RewriteCond %{ENV:innermost_dir} =TNRS
8 8
RewriteCond $0 ^/ [ornext]
9 9
RewriteCond ?&$0 ^(.*)$
10
RewriteRule ^.+$ http://tnrs.iplantcollaborative.org/instructions.html%1#download_results [discardpath,noescape,last]
10
RewriteRule ^.+$ http://tnrs.iplantcollaborative.org/instructions.html%1#download_results [discardpath,noescape,last,qsappend]
inputs/VegBank/.htaccess
5 5

  
6 6
# dir without trailing / is provided as an absolute filesystem path
7 7
RewriteCond %{ENV:innermost_dir} =VegBank
8
RewriteRule ^/                  http://vegbank.org/get/index/dba_tabledescription                                                                                           [discardpath,noescape,last]
8
RewriteRule ^/                  http://vegbank.org/get/index/dba_tabledescription                                                                                           [discardpath,noescape,last,qsappend]
9 9
RewriteCond %{ENV:innermost_dir} =VegBank
10 10
RewriteCond %{REQUEST_FILENAME} !-d
11
RewriteRule ^([^/]+)(?:/(.*))?$ http://vegbank.org/vegbank/views/dba_tabledescription_detail.jsp?view=detail&entity=dba_tabledescription&where=where_tablename&wparam=$1#$2 [discardpath,noescape,last]
11
RewriteRule ^([^/]+)(?:/(.*))?$ http://vegbank.org/vegbank/views/dba_tabledescription_detail.jsp?view=detail&entity=dba_tabledescription&where=where_tablename&wparam=$1#$2 [discardpath,noescape,last,qsappend]
schemas/TCS/.htaccess
7 7
RewriteCond %{ENV:innermost_dir} =TCS
8 8
RewriteCond $0 ^/ [ornext]
9 9
RewriteCond #$0 ^(.*)$
10
RewriteRule ^.+$ http://www.tdwg.org/standards/117/download/#/v101.xsd%1 [discardpath,noescape,last]
10
RewriteRule ^.+$ http://www.tdwg.org/standards/117/download/#/v101.xsd%1 [discardpath,noescape,last,qsappend]
schemas/VegX/.htaccess
7 7
RewriteCond %{ENV:innermost_dir} =VegX
8 8
RewriteCond $0 ^/ [ornext]
9 9
RewriteCond #$0 ^(.*)$
10
RewriteRule ^.+$ http://wiki.tdwg.org/twiki/pub/Vegetation/WebHome/VegX_Schema_1.5.3_proposed.zip#/veg.xsd%1 [discardpath,noescape,last]
10
RewriteRule ^.+$ http://wiki.tdwg.org/twiki/pub/Vegetation/WebHome/VegX_Schema_1.5.3_proposed.zip#/veg.xsd%1 [discardpath,noescape,last,qsappend]
schemas/.htaccess
6 6

  
7 7
# dir without trailing / is provided as an absolute filesystem path
8 8
RewriteCond %{ENV:innermost_dir} =exchange_schemas
9
RewriteRule ^/() $1 [discardpath,noescape,last,redirect]
9
RewriteRule ^/() $1 [discardpath,noescape,last,redirect,qsappend]
schemas/DwC/history/.htaccess
7 7
RewriteCond %{ENV:innermost_dir} =history
8 8
RewriteCond $0 ^/ [ornext]
9 9
RewriteCond #$0 ^(.*)$
10
RewriteRule ^.+$ http://rs.tdwg.org/dwc/terms/history/%1 [discardpath,noescape,last]
10
RewriteRule ^.+$ http://rs.tdwg.org/dwc/terms/history/%1 [discardpath,noescape,last,qsappend]
schemas/DwC/terms/.htaccess
7 7
RewriteCond %{ENV:innermost_dir} =terms
8 8
RewriteCond $0 ^/ [ornext]
9 9
RewriteCond #$0 ^(.*)$
10
RewriteRule ^.+$ http://rs.tdwg.org/dwc/terms/%1 [discardpath,noescape,last]
10
RewriteRule ^.+$ http://rs.tdwg.org/dwc/terms/%1 [discardpath,noescape,last,qsappend]
schemas/DwC/.htaccess
7 7
RewriteCond %{ENV:innermost_dir} =DwC
8 8
RewriteCond $0 ^/ [ornext]
9 9
RewriteCond /$0 ^(.*)$
10
RewriteRule ^.+$ terms%1 [discardpath,noescape,last]
10
RewriteRule ^.+$ terms%1 [discardpath,noescape,last,qsappend]
schemas/VegCore/.htaccess
7 7
RewriteCond %{ENV:innermost_dir} =VegCore
8 8
RewriteCond $0 ^/ [ornext]
9 9
RewriteCond #$0 ^(.*)$
10
RewriteRule ^.+$ /wiki/VegCore%1 [discardpath,noescape,last,redirect]
10
RewriteRule ^.+$ /wiki/VegCore%1 [discardpath,noescape,last,redirect,qsappend]
web/primary_databases/.htaccess
6 6

  
7 7
# dir without trailing / is provided as an absolute filesystem path
8 8
RewriteCond %{ENV:innermost_dir} =primary_databases
9
RewriteRule ^/() $1 [discardpath,noescape,last,redirect]
9
RewriteRule ^/() $1 [discardpath,noescape,last,redirect,qsappend]
web/aggregators/BIEN2/geoscrub/.htaccess
7 7
RewriteCond %{ENV:innermost_dir} =geoscrub
8 8
RewriteCond $0 ^/ [ornext]
9 9
RewriteCond /$0 ^(.*)$
10
RewriteRule ^.+$ /servers/nimoy/geoscrub%1 [discardpath,noescape,last]
10
RewriteRule ^.+$ /servers/nimoy/geoscrub%1 [discardpath,noescape,last,qsappend]
web/aggregators/BIEN2/staging/.htaccess
7 7
RewriteCond %{ENV:innermost_dir} =staging
8 8
RewriteCond $0 ^/ [ornext]
9 9
RewriteCond /$0 ^(.*)$
10
RewriteRule ^.+$ /servers/nimoy/bien2_staging%1 [discardpath,noescape,last]
10
RewriteRule ^.+$ /servers/nimoy/bien2_staging%1 [discardpath,noescape,last,qsappend]
web/aggregators/IH/db/.htaccess
7 7
RewriteCond %{ENV:innermost_dir} =db
8 8
RewriteCond $0 ^/ [ornext]
9 9
RewriteCond /$0 ^(.*)$
10
RewriteRule ^.+$ /servers/nimoy/bien3_adb/ih%1 [discardpath,noescape,last]
10
RewriteRule ^.+$ /servers/nimoy/bien3_adb/ih%1 [discardpath,noescape,last,qsappend]
web/.phpPgAdmin/.htaccess
3 3

  
4 4
SetEnvIf Request_URI ^ innermost_dir=phpPgAdmin
5 5

  
6
RewriteRule ^\[(.*)\]/([^/]*)/([^/]*)/([^/]*)/([^/]*)/(.+?)/?$ http://$1/redirect.php?server=$2&database=$3&schema=$4&table=$5&column=$6&subject=column [discardpath,noescape,last,redirect]
7
RewriteRule ^\[(.*)\]/([^/]*)/([^/]*)/([^/]*)/(.+?)/?$         http://$1/redirect.php?server=$2&database=$3&schema=$4&table=$5&subject=table            [discardpath,noescape,last,redirect]
8
RewriteRule ^\[(.*)\]/([^/]*)/([^/]*)/(.+?)/?$                 http://$1/redirect.php?server=$2&database=$3&schema=$4&subject=schema                    [discardpath,noescape,last,redirect]
9
RewriteRule ^\[(.*)\]/([^/]*)/(.+?)/?$                         http://$1/redirect.php?server=$2&database=$3&subject=database                            [discardpath,noescape,last,redirect]
10
RewriteRule ^\[(.*)\]/(.+?)/?$                                 http://$1/redirect.php?server=$2&subject=server                                          [discardpath,noescape,last,redirect]
11
RewriteRule ^\[(.*)\]/?$                                       http://$1/redirect.php?subject=root                                                      [discardpath,noescape,last,redirect]
6
RewriteRule ^\[(.*)\]/([^/]*)/([^/]*)/([^/]*)/([^/]*)/(.+?)/?$ http://$1/redirect.php?server=$2&database=$3&schema=$4&table=$5&column=$6&subject=column [discardpath,noescape,last,redirect,qsappend]
7
RewriteRule ^\[(.*)\]/([^/]*)/([^/]*)/([^/]*)/(.+?)/?$         http://$1/redirect.php?server=$2&database=$3&schema=$4&table=$5&subject=table            [discardpath,noescape,last,redirect,qsappend]
8
RewriteRule ^\[(.*)\]/([^/]*)/([^/]*)/(.+?)/?$                 http://$1/redirect.php?server=$2&database=$3&schema=$4&subject=schema                    [discardpath,noescape,last,redirect,qsappend]
9
RewriteRule ^\[(.*)\]/([^/]*)/(.+?)/?$                         http://$1/redirect.php?server=$2&database=$3&subject=database                            [discardpath,noescape,last,redirect,qsappend]
10
RewriteRule ^\[(.*)\]/(.+?)/?$                                 http://$1/redirect.php?server=$2&subject=server                                          [discardpath,noescape,last,redirect,qsappend]
11
RewriteRule ^\[(.*)\]/?$                                       http://$1/redirect.php?subject=root                                                      [discardpath,noescape,last,redirect,qsappend]
web/people/.htaccess
6 6

  
7 7
# dir without trailing / is provided as an absolute filesystem path
8 8
RewriteCond %{ENV:innermost_dir} =people
9
RewriteRule ^/() $1 [discardpath,noescape,last,redirect]
9
RewriteRule ^/() $1 [discardpath,noescape,last,redirect,qsappend]
web/servers/vegbiendev/.htaccess
7 7
RewriteCond %{ENV:innermost_dir} =vegbiendev
8 8
RewriteCond $0 ^/ [ornext]
9 9
RewriteCond /$0 ^(.*)$
10
RewriteRule ^.+$ db%1 [discardpath,noescape,last]
10
RewriteRule ^.+$ db%1 [discardpath,noescape,last,qsappend]

Also available in: Unified diff