If you have both configure.php files setup to use the www in the URL, check that you do not have any rewrites in the .htaccess trying to manage the URL and forcing secure or redirects to not using the www ...