fixing ssl redirects