Handle SSL redirections