Replacing http with https in case the site is served via https.