Cloudflare geolocation header configured, need assistance in creating an apache redirect

Hi there,

We enabled geo location header in cloudflare and we are trying to redirect traffic to a different url based on the language detected. I tried the below .htaccess rule without success. Appreciate if I you could get any assistance from someone who already tried.

.htaccess redirect rule :
RewriteCond %{HTTP:CF-IPCountry} ==""
RewriteRule .* https://www.mydomain.com/ [R=301,L]

The above rule doesnt seem to work. Site is setup in proxy mode.

Thanks
Karthik

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