Fix for redirect to https.