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,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
|
|
13
|
# auto-add trailing / (dir without trailing / is absolute filesystem path)
|
14
|
RewriteCond %{ENV:innermost_dir} =phpPgAdmin
|
15
|
RewriteRule ^/ %{REQUEST_URI}/ [discardpath,last,noescape,qsappend,redirect]
|