Domain redirection plus a few fixes