• Hello, hope you would be able to help with my new challenge

    We have:
    WP site hosted with NameCheap
    W3TC caches on WP level
    Polylang plugin driving 3 language locales (EN/UA/RU, whereby EN is a primary one)
    The site is also on free Cloudflare (Caching Level Standard)

    By the new law, all sites in UA should open UA locale by default (even if the browser locale is not UA)

    The solution I’ve managed to find:
    Installed CloudFlare GeoIP Redirect plugin
    Set the rule if country = UA, then 307 redirect with query string ?lang=ua (which inefficiently triggers UA locale – it would be better to re-direct to /ua/home_ua/)
    https://prnt.sc/7RqRQDcZ-mr3

    Result: all works UA version opened in UA and EN version opened in the UK

    The issue I faced:
    high “speed index” in g-speed report

    could you please advise if there is another (better) way of conditional redirect (based on geoIP)? or maybe we can optimise the query string to reduce changing of the language?

    Thanks!

    The page I need help with: [log in to see the link]

  • The topic ‘Conditional redirect / language settings’ is closed to new replies.