Redirect works only on homepage
-
Hi!
I am using your plugin to redirect users on my website that is in 2 languages. It works fine when opening the homepage, but not on any other page. I am using WMPL and Woocommerce on my website so I would like users to be redirected even if they access the product page or some category page.
I am using code from this page:
https://github.com/yellowtree/geoip-detect/wiki/API-Usage-Examples#redirect-depending-on-countryIf you use a caching plugin, you will probably want to use the AJAX mode: (You need to enable AJAX & Frontend JS.)
I have enabled this in General Options:
– Disable caching a page that contains a shortcode or API call to geo-dependent functions.
– Enable AJAX endpoint to get the information for the current IP even on cached pages.
– Add JS Helper functions to all pages.Is there some other setting I have to enable for this?
- The topic ‘Redirect works only on homepage’ is closed to new replies.