Remove infinite redirect loop.