Fixing redirection for tenanted hosting