handle local redirects