Prevent infinite looping on redirects.