Project

General

Profile

« Previous | Next » 

Revision 12178

web/.phpPgAdmin/.htaccess: support linking to a view

View differences:

trunk/web/.phpPgAdmin/.htaccess
10 10
RewriteRule ^\[(.*)\](?:/(.*))?$ $2 [discardpath,noescape,qsappend,env=base_url:http://$1]
11 11

  
12 12
# extract path components 1st->last
13
RewriteRule ^                   -              [discardpath,noescape,qsappend,env=page:servers]
14
RewriteRule ^([^/]+)(?:/(.*))?$ $2?server=$1   [discardpath,noescape,qsappend,env=page:all_db]
15
RewriteRule ^([^/]+)(?:/(.*))?$ $2?database=$1 [discardpath,noescape,qsappend,env=page:schemas]
16
RewriteRule ^([^/]+)(?:/(.*))?$ $2?schema=$1   [discardpath,noescape,qsappend,env=page:tables]
17
RewriteRule ^views()$           $1             [discardpath,noescape,qsappend,env=page:views]
18
RewriteRule ^([^/]+)(?:/(.*))?$ $2?table=$1    [discardpath,noescape,qsappend,env=page:tblproperties]
19
RewriteRule ^([^/]+)(?:/(.*))?$ $2?column=$1   [discardpath,noescape,qsappend,env=page:colproperties]
13
RewriteRule ^                        -                            [discardpath,noescape,qsappend,env=page:servers]
14
RewriteRule ^([^/]+)(?:/(.*))?$      $2?server=$1                 [discardpath,noescape,qsappend,env=page:all_db]
15
RewriteRule ^([^/]+)(?:/(.*))?$      $2?database=$1               [discardpath,noescape,qsappend,env=page:schemas]
16
RewriteRule ^([^/]+)(?:/(.*))?$      $2?schema=$1                 [discardpath,noescape,qsappend,env=page:tables]
17
RewriteRule ^views()$                $1                           [discardpath,noescape,qsappend,env=page:views]
18
RewriteRule ^view=([^/]+)(?:/(.*))?$ $2?view=$1&action=definition [discardpath,noescape,qsappend,skip=1,env=page:viewproperties]
19
RewriteRule ^([^/]+)(?:/(.*))?$      $2?table=$1                  [discardpath,noescape,qsappend,env=page:tblproperties]
20
RewriteRule ^([^/]+)(?:/(.*))?$      $2?column=$1                 [discardpath,noescape,qsappend,env=page:colproperties]
20 21

  
21 22
# redirect to now-constructed URL
22 23
RewriteCond %{ENV:base_url} !=""

Also available in: Unified diff