ok,
you probably have a mistake in your config.php file. Most likely $CFG->wwwroot is wrong. Check it carefully and/or post the whole file here (without your passwords please!!).
Also check that you don't have any strange redirects setup in you httpd.conf or you .htaccess files.