Revision 8376
Added by Aaron Marcuse-Kubitza over 11 years ago
.htaccess | ||
---|---|---|
5 | 5 |
RewriteCond %{QUERY_STRING} ^(?!&).+$ |
6 | 6 |
RewriteRule ^.*$ /dotpath.php%{REQUEST_URI} [discardpath,noescape,last] |
7 | 7 |
|
8 |
# don't rewrite existing paths |
|
9 |
RewriteCond %{REQUEST_FILENAME} -d [ornext] |
|
10 |
RewriteCond %{REQUEST_FILENAME} -f |
|
11 |
RewriteRule ^.+$ - [discardpath,noescape,last] |
|
12 |
|
|
13 |
# handle DirectoryIndex (this must be at this position in the rules) |
|
14 |
RewriteRule ^(.*/)?index\.php$ $1 [discardpath,noescape] |
|
15 |
|
|
8 | 16 |
RewriteRule ^\[(.*)\]/([^/]*)/([^/]*)/([^/]*)/([^/]*)/(.+?)/?$ http://$1/redirect.php?server=$2&database=$3&schema=$4&table=$5&column=$6&subject=column [discardpath,noescape,last,redirect] |
9 | 17 |
RewriteRule ^\[(.*)\]/([^/]*)/([^/]*)/([^/]*)/(.+?)/?$ http://$1/redirect.php?server=$2&database=$3&schema=$4&table=$5&subject=table [discardpath,noescape,last,redirect] |
10 | 18 |
RewriteRule ^\[(.*)\]/([^/]*)/([^/]*)/(.+?)/?$ http://$1/redirect.php?server=$2&database=$3&schema=$4&subject=schema [discardpath,noescape,last,redirect] |
Also available in: Unified diff
web/**/.htaccess: Added "don't rewrite existing paths" and "handle DirectoryIndex" rules to all .htaccess files, not just those for dirs that contain subdirs, to facilitate linking directly to files in the filesystem without first needing to retrofit the applicable .htaccess file.