Keywords: Magento - Virtual Machines - Technical issue - Other
bnsupport ID: 9935983f-775e-914c-c32d-f2f0ab4df9ba
Hi, when a REST API URL is submitted to my Magento module, the URL is being rewritten with these changes before it hits my REST API code:
1. the query string has been removed
2. the base URL has been changed to the public IP
For example, this URL:
Gets rewritten to this:
Without the query string, the REST API call fails.
The query string will intact ONLY if the IP address is used instead, and only from the local machine:
All external requests have the query string removed, regardless of the base URL.
I've not changed any rewrite_mod rules. Only using whatever the default installation is.
I tried using the online htaccess tester, but I think the bitnami image doesn't use .htaccess files. Plus, the htaccess tester doesn't result in the query string being removed.
How do I get the query string to remain intact from external requests please?