GeoIP Redirect.

Hello guys, i am trying to make a redirect rules to make all canada traffic to be redirect from domain.com/path/of/the/product to domain.com/ca/path/of/the/product This is a screen shot of what i had tryed and it is not working. Any idea ? Thanks,
2 Replies
Chaika
Chaika16mo ago
Dynamic Redirects doesn't support wildcards or replacements like that, you could use starts with, but if you want to match any path I would just do Hostname equals dev.domain.com eeh that would always match though and you'd end up with an infinite redirect, one sec You would want something like Country equals Canada and Hostname equals dev.domain.com and Path does not start with /ca/ Then URl Redirect Type Dynamic Expression: concat("https://dev.domain.com/ca", http.request.uri.path) Preserve query string (if you want that)
GeeXx
GeeXx16mo ago
Hello @chaika.me Thanks alot it works perfectly !!
Want results from more Discord servers?
Add your server