Revision 8448
Added by Aaron Marcuse-Kubitza over 11 years ago
.htaccess | ||
---|---|---|
3 | 3 |
|
4 | 4 |
SetEnvIf Request_URI ^ innermost_dir=phpMyAdmin |
5 | 5 |
|
6 |
# parse dotpath in the query string |
|
7 |
RewriteCond %{QUERY_STRING} ^(?!&).+$ |
|
8 |
RewriteCond %{REQUEST_URI} ^(.*?)(?:/index(?:\.\w+)?)?$ |
|
9 |
RewriteRule ^.*$ /dotpath%1 [discardpath,noescape,last] |
|
10 |
|
|
11 |
# don't rewrite existing paths |
|
12 |
RewriteCond %{REQUEST_FILENAME} -d [ornext] |
|
13 |
RewriteCond %{REQUEST_FILENAME} -f |
|
14 |
RewriteRule ^(?!/).+$ - [discardpath,noescape,last] |
|
15 |
|
|
16 |
# handle DirectoryIndex subrequests |
|
17 |
RewriteRule ^index$() $1 [discardpath,noescape] |
|
18 |
|
|
19 | 6 |
RewriteRule ^\[(.*)\]/([^/]*)/([^/]*)/(.+?)/?$ http://$1/?db=$2&table=$3&column=$4&target=tbl_structure.php [discardpath,noescape,last,redirect] |
20 | 7 |
RewriteRule ^\[(.*)\]/([^/]*)/(.+?)/?$ http://$1/?db=$2&table=$3&target=tbl_structure.php [discardpath,noescape,last,redirect] |
21 | 8 |
RewriteRule ^\[(.*)\]/(.+?)/?$ http://$1/?db=$2&target=db_structure.php [discardpath,noescape,last,redirect] |
Also available in: Unified diff
web/**/.htaccess: Removed preprocessing commands that need to run for every dir, because these are now inherited from the outermost .htaccess using InheritBefore. This allows the inner .htaccess files to focus just on the fallback rewrites, without needing lots of boilerplate code (except for the obligatory RewriteEngine/RewriteOptions/SetEnvIf preamble).