#38038 closed defect (bug) (invalid)
Global $_GET parameter is broken in multisite subdirectory install
| Reported by: | arkimedia | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Permalinks | Version: | 4.6.1 |
| Severity: | normal | Keywords: | |
| Cc: | Focuses: | multisite |
Description
Hi,
Global $_GET parameter is not working correctly in multisite subdirectory install.
- If I add action to init which prints contents of the global $_GET parameter, it works when I'm in the front page of the primary site. For example http://example.org/q=test
- In the sub page (not sub site) like http://example.org/subpage/q=test I got empty array.
Many plugins like REST API are using $_GET parameters, for example to order results . All of these plugins are broken in multisite subdirectory install.
Change History (3)
#2
@
10 years ago
- Keywords reporter-feedback removed
- Resolution → invalid
- Status new → closed
Yes, issue happens with the correct url, but I already found a root cause for this issue.
I was missing the $args parameter in my nginx.conf, which is required in subdirectory install.
After I changed
try_files $uri $uri/ /index.php;
to
try_files $uri $uri/ /index.php?$args;
everything is working correctly.
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
The correct URL would be
http://example.org/subpage/?q=test(note the question mark beforeq).Could you confirm that the issue still happens with the correct URL?