Remove illegal redirect directive.