fixed SSL redirections