Acquia cloud dev environments htaccess are redirecting wrong.
That's because you're redirecting requests to a www subdomain in .htaccess, and there's we don't make DNS entries for www subdomains of development domains. Instead of redirecting every request, redirect just based on what domain is being requested, that is, the production domain: https://docs.acquia.com/acquia-cloud/manage/htaccess#www (especially the second block of code) documents this.
Acquia cloud dev environments htaccess are redirecting wrong. That's because you're redirecting requests to a www subdomain in .htaccess, and there's we don't make DNS entries for www subdomains of development domains. Instead of redirecting every request, redirect just based on what domain is being requested, that is, the production domain: https://docs.acquia.com/acquia-cloud/manage/htaccess#www (especially the second block of code) documents this.
See https://insight.acquia.com/support/tickets/383760