added redirect if set in host