Preventing an infinite loop when the URL was rewriten.