Project

General

Profile

« Previous | Next » 

Revision 8507

web/**/.htaccess: RewriteRules: ensured flags are in alphabetical order

View differences:

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,qsappend]
10
RewriteRule ^.+$ /.phpPgAdmin/[vegbiendev.nceas.ucsb.edu/phppgadmin]/localhost:5432:allow%1 [discardpath,last,noescape,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,qsappend]
11
RewriteRule ^.+$ ../main/repository/entry%1 [discardpath,last,noescape,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,qsappend]
11
RewriteRule ^.+$ ../main/wiki/%1 [discardpath,last,noescape,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,qsappend]
10
RewriteRule ^.+$ https://projects.nceas.ucsb.edu/nceas/projects/bien%1 [discardpath,last,noescape,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,qsappend]
11
RewriteRule ^.+$ ../main/repository/raw%1 [discardpath,last,noescape,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,qsappend]
10
RewriteRule ^.+$ wiki%1 [discardpath,last,noescape,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,qsappend]
10
RewriteRule ^.+$ /servers/vegbiendev/vegbien/public%1 [discardpath,last,noescape,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,qsappend]
10
RewriteRule ^.+$ db%1 [discardpath,last,noescape,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,qsappend]
11
RewriteRule ^.+$ ../_src/ctfs-comments_worksheet.xls%1 [discardpath,last,noescape,qsappend,redirect]
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,qsappend]
11
RewriteRule ^.+$ ../_archive/DBv5.txt%1 [discardpath,last,noescape,qsappend,redirect]
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,qsappend]
10
RewriteRule ^.+$ /wiki/CTFS%1#Tables [discardpath,last,noescape,qsappend,redirect]
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,qsappend]
10
RewriteRule ^.+$ schema%1 [discardpath,last,noescape,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,qsappend]
10
RewriteRule ^.+$ /servers/nimoy/salvias_plots%1 [discardpath,last,noescape,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,qsappend]
10
RewriteRule ^.+$ web%1 [discardpath,last,noescape,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,qsappend]
10
RewriteRule ^.+$ /servers/nimoy/bien_web%1 [discardpath,last,noescape,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,qsappend]
10
RewriteRule ^.+$ http://sweetgum.nybg.org/ih/%1 [discardpath,last,noescape,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,qsappend]
17
RewriteRule ^.*$ %{REQUEST_SCHEME}://%1%{REQUEST_URI} [discardpath,last,noescape,qsappend]
18 18

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

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

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

  
39 39
# auto-detect dotpath in query string (having a . before any = )
......
52 52

  
53 53
# don't rewrite existing dirs with trailing /
54 54
RewriteCond %{REQUEST_FILENAME} -d
55
RewriteRule ^.+/$ - [discardpath,noescape,last,qsappend]
55
RewriteRule ^.+/$ - [discardpath,last,noescape,qsappend]
56 56

  
57 57
# don't rewrite existing files
58 58
RewriteCond %{REQUEST_FILENAME} -f
59
RewriteRule ^.+$ - [discardpath,noescape,last,qsappend]
59
RewriteRule ^.+$ - [discardpath,last,noescape,qsappend]
60 60

  
61 61
# auto-add trailing / unless has an .htaccess with possible redirect
62 62
RewriteCond %{REQUEST_FILENAME} -d
63 63
RewriteCond %{REQUEST_FILENAME}/.htaccess !-f
64
RewriteRule ^.+$ %{REQUEST_URI}/ [discardpath,noescape,last,redirect,qsappend]
64
RewriteRule ^.+$ %{REQUEST_URI}/ [discardpath,last,noescape,qsappend,redirect]
65 65

  
66 66
# handle DirectoryIndex subrequests when there is no DirectoryIndex
67 67
# use -F subrequest so that MultiViews auto-appends any extension
......
72 72
# works only if dir supports relative redirects and sets %{ENV:innermost_dir}
73 73
RewriteCond %{REQUEST_FILENAME} ^(.*/)?(.+?)$
74 74
RewriteCond %1%{ENV:innermost_dir}.%2 -F
75
RewriteRule ^(?!/)(.*/)?(.+?)$ $1%{ENV:innermost_dir}.$2 [discardpath,noescape,last,redirect,qsappend]
75
RewriteRule ^(?!/)(.*/)?(.+?)$ $1%{ENV:innermost_dir}.$2 [discardpath,last,noescape,qsappend,redirect]
76 76

  
77 77
## specific to /
78 78

  
79 79
RewriteCond %{ENV:innermost_dir} =/
80
RewriteRule ^.+$ /VegCore/$0 [discardpath,noescape,last,qsappend]
80
RewriteRule ^.+$ /VegCore/$0 [discardpath,last,noescape,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,qsappend]
10
RewriteRule ^.+$ /.phpMyAdmin/[nimoy.nceas.ucsb.edu/phpmyadmin]%1 [discardpath,last,noescape,qsappend]
inputs/SALVIAS/dd/.htaccess
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,qsappend]
11
RewriteRule ^.+$ http://salvias.net/Documents/salvias_data_dictionary.html%1 [discardpath,last,noescape,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,qsappend]
10
RewriteRule ^.+$ /servers/nimoy/salvias_users%1 [discardpath,last,noescape,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,qsappend]
10
RewriteRule ^.+$ dd%1 [discardpath,last,noescape,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,qsappend]
10
RewriteRule ^.+$ http://tnrs.iplantcollaborative.org/instructions.html%1#download_results [discardpath,last,noescape,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,qsappend]
8
RewriteRule ^/                  http://vegbank.org/get/index/dba_tabledescription                                                                                           [discardpath,last,noescape,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,qsappend]
11
RewriteRule ^([^/]+)(?:/(.*))?$ http://vegbank.org/vegbank/views/dba_tabledescription_detail.jsp?view=detail&entity=dba_tabledescription&where=where_tablename&wparam=$1#$2 [discardpath,last,noescape,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,qsappend]
10
RewriteRule ^.+$ http://www.tdwg.org/standards/117/download/#/v101.xsd%1 [discardpath,last,noescape,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,qsappend]
10
RewriteRule ^.+$ http://wiki.tdwg.org/twiki/pub/Vegetation/WebHome/VegX_Schema_1.5.3_proposed.zip#/veg.xsd%1 [discardpath,last,noescape,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,qsappend]
10
RewriteRule ^.+$ http://rs.tdwg.org/dwc/terms/history/%1 [discardpath,last,noescape,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,qsappend]
10
RewriteRule ^.+$ http://rs.tdwg.org/dwc/terms/%1 [discardpath,last,noescape,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,qsappend]
10
RewriteRule ^.+$ terms%1 [discardpath,last,noescape,qsappend]
schemas/VegCore/.htaccess
8 8
RewriteCond %{ENV:innermost_dir} =VegCore
9 9
RewriteCond $0 ^/ [ornext]
10 10
RewriteCond #$0 ^(.*)$
11
RewriteRule ^.+$ /wiki/VegCore%1 [discardpath,noescape,last,redirect,qsappend]
11
RewriteRule ^.+$ /wiki/VegCore%1 [discardpath,last,noescape,qsappend,redirect]
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,qsappend]
10
RewriteRule ^.+$ /servers/nimoy/bien2%1 [discardpath,last,noescape,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,qsappend]
10
RewriteRule ^.+$ /servers/nimoy/geoscrub%1 [discardpath,last,noescape,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,qsappend]
10
RewriteRule ^.+$ /servers/nimoy/bien2_staging%1 [discardpath,last,noescape,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,qsappend]
10
RewriteRule ^.+$ /servers/nimoy/bien3_adb/ih%1 [discardpath,last,noescape,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,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]
6
RewriteRule ^\[(.*)\]/([^/]*)/([^/]*)/([^/]*)/([^/]*)/(.+?)/?$ http://$1/redirect.php?server=$2&database=$3&schema=$4&table=$5&column=$6&subject=column [discardpath,last,noescape,qsappend,redirect]
7
RewriteRule ^\[(.*)\]/([^/]*)/([^/]*)/([^/]*)/(.+?)/?$         http://$1/redirect.php?server=$2&database=$3&schema=$4&table=$5&subject=table            [discardpath,last,noescape,qsappend,redirect]
8
RewriteRule ^\[(.*)\]/([^/]*)/([^/]*)/(.+?)/?$                 http://$1/redirect.php?server=$2&database=$3&schema=$4&subject=schema                    [discardpath,last,noescape,qsappend,redirect]
9
RewriteRule ^\[(.*)\]/([^/]*)/(.+?)/?$                         http://$1/redirect.php?server=$2&database=$3&subject=database                            [discardpath,last,noescape,qsappend,redirect]
10
RewriteRule ^\[(.*)\]/(.+?)/?$                                 http://$1/redirect.php?server=$2&subject=server                                          [discardpath,last,noescape,qsappend,redirect]
11
RewriteRule ^\[(.*)\]/?$                                       http://$1/redirect.php?subject=root                                                      [discardpath,last,noescape,qsappend,redirect]
12 12

  
13 13
# auto-add trailing / (dir without trailing / is absolute filesystem path)
14 14
RewriteCond %{ENV:innermost_dir} =phpPgAdmin
15
RewriteRule ^/ %{REQUEST_URI}/ [discardpath,noescape,last,redirect,qsappend]
15
RewriteRule ^/ %{REQUEST_URI}/ [discardpath,last,noescape,qsappend,redirect]
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,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]
6
RewriteRule ^\[(.*)\]/([^/]*)/([^/]*)/(.+?)/?$ http://$1/?db=$2&table=$3&column=$4&target=tbl_structure.php [discardpath,last,noescape,qsappend,redirect]
7
RewriteRule ^\[(.*)\]/([^/]*)/(.+?)/?$         http://$1/?db=$2&table=$3&target=tbl_structure.php           [discardpath,last,noescape,qsappend,redirect]
8
RewriteRule ^\[(.*)\]/(.+?)/?$                 http://$1/?db=$2&target=db_structure.php                     [discardpath,last,noescape,qsappend,redirect]
9
RewriteRule ^\[(.*)\]/?$                       http://$1/?target=server_databases.php                       [discardpath,last,noescape,qsappend,redirect]
10 10

  
11 11
# auto-add trailing / (dir without trailing / is absolute filesystem path)
12 12
RewriteCond %{ENV:innermost_dir} =phpMyAdmin
13
RewriteRule ^/ %{REQUEST_URI}/ [discardpath,noescape,last,redirect,qsappend]
13
RewriteRule ^/ %{REQUEST_URI}/ [discardpath,last,noescape,qsappend,redirect]
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,qsappend]
10
RewriteRule ^.+$ db%1 [discardpath,last,noescape,qsappend]

Also available in: Unified diff