Fix redirects with https.