Prevent infinite redirection loop