1
|
RewriteEngine on
|
2
|
RewriteOptions AllowNoSlash InheritBefore
|
3
|
|
4
|
SetEnvIf Request_URI ^ innermost_dir=phpPgAdmin
|
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]
|
12
|
|
13
|
# auto-add trailing / (dir without trailing / is absolute filesystem path)
|
14
|
RewriteCond %{ENV:innermost_dir} =phpPgAdmin
|
15
|
RewriteRule ^/ %{REQUEST_URI}/ [discardpath,noescape,last,redirect,qsappend]
|