Plugin redirects to 404 page when GeoIP located in production environment
-
I’ve tested this on a live site before switching it to production.
I have some geolocation code that detects where the user is coming from (via IP) and it automatically click-triggers the appropriate GTranslate link (via JS).
On the staging site (Cloudways), this just immediately switches to the language and loads everything up with the language. On my production site though (WP-Engine), instead of doing that it redirects into a new (non-existent, 404) page.
The site in question (https://www.immigrationhadley.com/) has two languages, EN(US) and ES(Mexico). When in Mexico it should just switch the language but instead it’s going to this URL (https://www.immigrationhadley.com/es/home-mx/) which doesn’t exist.
What’s going on here?
The page I need help with: [log in to see the link]
- The topic ‘Plugin redirects to 404 page when GeoIP located in production environment’ is closed to new replies.