Redirect Visitors From a Particular Country to a Particular URL

What is the name of the domain?

example.com

What is the issue you’re encountering

Redirect Not Working

What steps have you taken to resolve the issue?

Hello.

I’m trying to redirect visitors from a particular country to a URL of my website. I have followed many Cloudflare Docs and suggestions and even used different templates, but the redirect is not working. Here is the screenshot of my configuration: Screenshot by Lightshot

Thanks for the assistance!

What are the steps to reproduce the issue?

Screenshot here: Screenshot by Lightshot

Screenshot of the error

Change Hostname equals to URL full equals (or starts with if expecting more path after /home) - see the e.g. under the value for the format expected for the field you have selected.

If there is no further path after /home, then the redirect type should be static and the URL just https://library.example.com/home/usa otherwise the dynamic thing you have set is going to append the path.

If there is stuff after /home, post back as that will need different handling again.

Hello.

Thank you for the help. I just made the changes you suggested. I will give it a few minutes or hours, observe what happens, and report back here.

Thanks again!

Thank you very much… It’s working now. However, I will also like to set another one with more path after /home/usa/

Thank you!

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