Project

General

Profile

« Previous | Next » 

Revision 13460

bugfix: web/.phpPgAdmin/.htaccess: only append subject if non-empty, to avoid confusing redirect.php

View differences:

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