For the sake of completeness, I added these php code lines to the beginning of the file if they can serve for later versions.
// Set the start URL. Here is https used, use http:// for non SSL websites.
// URL Association for SSL and Protocol Compatibility
$http = 'http://';
if (!empty($_SERVER['HTTPS'])) {
$http = ($_SERVER['HTTPS'] === 'on') ? 'https://' : 'http://';
}
define ("SITE", $http."www.site.com");