Looks like either someone has written the configure.php files incorrectly or you have rewrites happening on your site ...

Since going to:
http://www.your_domain_name.com

automatically changes to a secure URL, this tells me you have rewrites happening ... at a minimum ...

Either you set these up or your hosting company did ... and things should not be setup in that manner ...