redirect if redirect header detected

redirect if redirect header detected