Modified config.php to use http:// or https:// in SITE_URL depending on which was requested by the client. Changed login.html to login.php to use the SITE_URL variable to solve pathing issues. All html pages should have this done to them in the future to resolve pathing issues.