Project

General

Profile

« Previous | Next » 

Revision 12173

bugfix: web/.phpPgAdmin/.htaccess: path RewriteRules: need to go directly to the applicable tab, rather than going via redirect.php, because redirect.php will use the last selected tab, rather than the first tab for that section, leading to unexpected results when a non-default tab was previously selected

View differences:

.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,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]
6
RewriteRule ^\[(.*)\]/([^/]*)/([^/]*)/([^/]*)/([^/]*)/(.+?)/?$ http://$1/colproperties.php?server=$2&database=$3&schema=$4&table=$5&column=$6 [discardpath,last,noescape,qsappend,redirect]
7
RewriteRule ^\[(.*)\]/([^/]*)/([^/]*)/([^/]*)/(.+?)/?$         http://$1/tblproperties.php?server=$2&database=$3&schema=$4&table=$5           [discardpath,last,noescape,qsappend,redirect]
8
RewriteRule ^\[(.*)\]/([^/]*)/([^/]*)/(.+?)/?$                 http://$1/tables.php?server=$2&database=$3&schema=$4                           [discardpath,last,noescape,qsappend,redirect]
9
RewriteRule ^\[(.*)\]/([^/]*)/(.+?)/?$                         http://$1/schemas.php?server=$2&database=$3                                    [discardpath,last,noescape,qsappend,redirect]
10
RewriteRule ^\[(.*)\]/(.+?)/?$                                 http://$1/all_db.php?server=$2                                                 [discardpath,last,noescape,qsappend,redirect]
11
RewriteRule ^\[(.*)\]/?$                                       http://$1/servers.php                                                          [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

Also available in: Unified diff