Prevents infinite redirect.