Wordpress LScache Plugin: IP based redirection is not working
Last Updated on: Wed, 15 Apr 2026 00:00:02 Hi, I am using LiteSpeed Cache plugin. Also, I am using WP Geo IP Redirect Plugin. Before using LiteSpeed Cache plugin, WP Geo IP Redirect was working fine. After Installing LiteSpeed Cache Plugin WP Geo IP Redirect is not working properly. I have Set redirection on Submenu of Services(MBA/eMBA/MS) menu. Pl. check Regards, Sandeep Pal The page I need help with: https://mbaadmissiongurus.com/staging/mba-admission-services/ if your site is using CloudFlare, then add this at top of your .htaccess RewriteRule . - [E=Cache-Control:vary=% HTTP:CF-IPCountry ] 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 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 ? Hi, Its shared hosting. Regards, Sandeep Pal Hi, if you dont 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 RewriteRule . ? [E=Cache-Control:vary=% HTTP:CF-IPCountry ] into .htaccess or something else? that rule only works if you have CloudFalre CDN enabeld ?- sorry didnt see your first reply if you have geoip enabled, then use GeoIPEnable On RewriteRule . - [E=Cache-Control:vary=% ENV:GEOIP_COUNTRY_CODE ] if it didnt 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. Can I ask them to enable CloudFlare CDN instead of Geo IP Module? if this is your site https://mbaadmissiongurus.com/staging/mba-admission-services/ it has CloudFlare already Since GeoIP module is enabled and CloudFlare is already there. Will they conflict? or will I disabled one of them? 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. Its 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/ One is DNS, one is CDN You have CDN enabled already
LiteCache Rush: Speed comes from using less, not from doing it faster
Reference