Project

General

Profile

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