Hey guys !
I have a tld domain.com and a subdomain us.domain.com
They both point to the same netlify hosting. In my webapp, I do some detection based on domain to update the website accordingly.
I’m trying to use Netlify’s GeoIP redirect feature to achieve the following behavior :
- Redirect any visitor from any EU country to the tld
- Redirect any visitor from the rest of the world to the subdomain
So far I have the redirect from the subdomain to the tld working using the Country condition and listing every country code in Europe.
I think I could get the other part working doing the same thing : basically listing all country codes except for the EU ones. But seems like there might be a better way ? Like maybe redirecting any visitor to the subdomain when NOT matching any EU country. That way I don’t have to actually list all country codes in the world…
Thanks for your help !