We have the following geographic subdirectories of our website:
www.example.com
(for USA and worldwide visitors)www.example.com/en-au/
(for Australian visitors)www.example.com/en-gb/
(for UK visitors).
We are currently using GeoTargetingWP to detect visitors' IP addresses and redirect them based on their location.
Because we're using NitroPack to cache the website, the GeoTargetingWP's IP address detection needs to be run by AJAX, as PHP resources are cached.
However, there is a lag of about 1 second to load the page and another 1 second for the redirection to take place, which we hope to improve.
We were hoping to use AWS lambda redirects to improve the speed of redirects between the 3 subdirectories, however, we found they also redirect Googlebot, which isn't what we want.
I'm hoping to receive some alternative suggestions that can perform a quick non-JavaScript geographic redirect between geographic subdirectories.
/en/
and/fr/
for content in different languages? Are you currently doing redirects based on theAccept-Language
header?