Plugin Support
qtwrk
(@qtwrk)
if your site is using CloudFlare, then add this at top of your .htaccess
<IfModule LiteSpeed>
RewriteRule .* - [E=Cache-Control:vary=%{HTTP:CF-IPCountry}]
</IfModule>
Hi,
Thanks for your reply. Right now I am not using “CloudFlare” Plugin. What else can we do to resolve the problem? pl.help.
Regards,
Sandeep
Plugin Support
qtwrk
(@qtwrk)
you will need to have certain service that gives you the geoip information , like CloudFlare CDN , or GeoIP module on your server
is it shared hosting ? or your own server ?
Plugin Support
qtwrk
(@qtwrk)
Hi,
if you don’t use any CDN service , then you will need to ask your provider to enable GeoIP module for you , otherwise there is no way out
Best regards,
Hi,
GeoIP module has enabled. But still problem not resolved. I have set redirection for India. Its working for India. But its not working properly for Non- Indian Countries.
Pl. help
Can I still have to add
<IfModule LiteSpeed>
RewriteRule .* – [E=Cache-Control:vary=%{HTTP:CF-IPCountry}]
</IfModule>
into .htaccess
or something else?
Plugin Support
qtwrk
(@qtwrk)
that rule only works if you have CloudFalre CDN enabeld
—-
sorry didn’t see your first reply
if you have geoip enabled, then use
<IfModule LiteSpeed>
GeoIPEnable On
RewriteRule .* - [E=Cache-Control:vary=%{ENV:GEOIP_COUNTRY_CODE}]
</IfModule>
if it didn’t work , please create a phpinfo page, and make sure you see GEOIP_COUNTRY_CODE variable in phpinfo page.
that is the indication if geoip works or not.
-
This reply was modified 4 years, 9 months ago by
qtwrk.
Can I ask them to enable CloudFlare CDN instead of Geo IP Module?
Plugin Support
qtwrk
(@qtwrk)
Since GeoIP module is enabled and CloudFlare is already there. Will they conflict? or will I disabled one of them?
Plugin Support
qtwrk
(@qtwrk)
they should not conflict , but for efficiency concern , can use CF one only
Hi,
Is there any difference between CloudFlare nameserve and CloudFlare CDN? CloudFlare nameserve is Active. Can I activate Cloudflare CDN also?
Also, I did as you said but still not resolved. I have set redirection for India. It’s working for India. But for Non-India country some of the url redirecting to India pages.
Please find the below links
https://mbaadmissiongurus.com/staging/start-to-finish-mba-emba/
https://mbaadmissiongurus.com/staging/ms-business-management-specialties/
https://mbaadmissiongurus.com/staging/non-gre-gmat-admissions-mba-ms/
https://mbaadmissiongurus.com/staging/interview-preparation/
https://mbaadmissiongurus.com/staging/pre-application-planning/
https://mbaadmissiongurus.com/staging/personal-statement-writing/
https://mbaadmissiongurus.com/staging/essays-reviews-writing-consult/
https://mbaadmissiongurus.com/staging/resume-reviews-consult-writing/
https://mbaadmissiongurus.com/staging/recommendation-letters-writing-reviews/
Plugin Support
qtwrk
(@qtwrk)
One is DNS, one is CDN
You have CDN enabled already