HTTPS redirection must be declared before the router.