https://bz.apache.org/bugzilla/show_bug.cgi?id=64793

            Bug ID: 64793
           Summary: url-encoded parameter not being set when certain
                    regexp used for rewrite rule
           Product: Apache httpd-2
           Version: 2.5-HEAD
          Hardware: PC
                OS: Mac OS X 10.1
            Status: NEW
          Severity: normal
          Priority: P2
         Component: mod_rewrite
          Assignee: [email protected]
          Reporter: [email protected]
  Target Milestone: ---

Apache Version 2.4.46
PHP 7.2 using FPM

The following rule/cond set looks for a path specification after the domain. if
one exists, rewrite with "dir/" and the whole path string found: 

RewriteCond     %{HTTP_HOST}  "^(?:www\.)?mydomain\.com$"
RewriteCond     $1            "!^\/?$"
RewriteRule     ^(.*)$        /dir/$1     [L,NC]

However, the url path parsing / parameter passing function is not working
consistently, functioning differently if a subdomain is present. 

For example, a php script, index.php uses param1 if set. If the initial url is
the following:

https://www.mydomain.com/test/?param1=foo

param1 is passed properly, and the index.php script receives it in $_REQUEST

If url is:

https://mydomain.com/test/?param1=foo

The parameter is NOT passed to index.php.

As a side note: the following url encoded format DOES pass the paramter
correctly when a subdomain is missing:

https://mydomain.com/test/?&param1=foo

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to