Prevent infinite redirect/loop