bumba000:
MC,
The dev site is installed in the root (public_html). There is no htaccess above this dir. There are no redirects added via cpanel.
What are the contents of the admin/includes/local directory and file(s) within?
BTW, as a little "test" myself. I took a site that I don't typically use www. as a prefix for, I have no .htaccess file in the root and have not done anything with the admin .htaccess to force one way or another and modified the three admin HTTP_ defines to include www. (First test was with just HTTP_SERVER). Attempted to access the admin, got results similar to what you have described about correct credentials being provided, POST went to www. but GET went to site without www. and remaining calls all went to site without www. Now I haven't gone looking for a few other things like, I do have an SSL and it is enabled and as far as controlling the domain further, I had a setting in place to force removal of www which would explain my observation but I have only dug so far and haven't disabled SSL from the admin for this site. I'm quite certain though if I added an .htaccess rewrite rule to force www. that issues would continue further.
All that being said, it seems to me that there is something on the server side that is basically prohibiting the use of www. on this test site and it is not ZC related...
Something I noticed though with my testing, was that when admin/includes/configure.php HTTP_SERVER included www., then my post for access went to www. while my GET went to the site without www and all further communication went without www. Your POST above showing the traffic flow doesn't attempt to go to the site with www., but the get did (.htaccess redirect) that was then taken back to without www.
Have you verified permissions on your admin/includes/configure.php as far as trying to edit it? Something doesn't add up...
ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...