Custom domain not redirecting properly