Fix redirect on domain-based site.