Redirect Rules by Country

Answer these questions to help the Community help you get started.

Hi there,
I need to redirect visitors from Countries outside Italy to …/en
Have you searched for an answer?
Yes, didn’t find anything clear about.

I want to use the Redirect Rules options, my settings are:

X Custom filter expression
Field: URI Path
Operator: equals
Value: https://website.com
AND
Country: is not Italy

(http.request.uri.path eq “https://website.com/” and not ip.geoip.country in {“IT”})

Then…

URL redirect
Type: Static
URL: https://website.com/en
Status code: 301

Describe the issue you are having:
No Redirect

Have you tried from another browser and/or incognito mode?
Yes

http.request.uri.path only refers to the path. So use this

http.request.uri.path eq "/"
2 Likes

Solved!
Many thanks

Roberto

Most welcome :slight_smile:

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.