Revision 13460
Added by Aaron Marcuse-Kubitza over 10 years ago
trunk/web/.phpPgAdmin/.htaccess | ||
---|---|---|
33 | 33 |
RewriteRule ^ - [discardpath,noescape,qsappend,env=!subject,env=page:%1] |
34 | 34 |
|
35 | 35 |
# redirect to now-constructed URL |
36 |
# only append subject if non-empty, to avoid confusing redirect.php |
|
36 | 37 |
RewriteCond %{ENV:base_url} !="" |
37 |
RewriteRule ^$ %{ENV:base_url}/%{ENV:page}.php?subject=%{ENV:subject} [discardpath,last,noescape,qsappend,redirect] |
|
38 |
RewriteCond %{ENV:subject} ="" [ornext] |
|
39 |
RewriteCond ?subject=%{ENV:subject} ^(.*)$ |
|
40 |
RewriteRule ^$ %{ENV:base_url}/%{ENV:page}.php%1 [discardpath,last,noescape,qsappend,redirect] |
|
38 | 41 |
|
39 | 42 |
## for internal URLs |
40 | 43 |
|
Also available in: Unified diff
bugfix: web/.phpPgAdmin/.htaccess: only append subject if non-empty, to avoid confusing redirect.php