Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

How does AEM Cloud send users to correct the country?

Avatar

Avatar
Validate 1
Level 3
sdouglasmc
Level 3

Likes

18 likes

Total Posts

83 posts

Correct Reply

3 solutions
Top badges earned
Validate 1
Give Back
Ignite 1
Boost 5
Boost 3
View profile

Avatar
Validate 1
Level 3
sdouglasmc
Level 3

Likes

18 likes

Total Posts

83 posts

Correct Reply

3 solutions
Top badges earned
Validate 1
Give Back
Ignite 1
Boost 5
Boost 3
View profile
sdouglasmc
Level 3

21-09-2020

I understand AEM Cloud services sits in front of a CDN.  What is the preferred way to send a user to the correct country based on geo-location or IP.  We have sites in many different countries and if their country doesn't have it's own country branch, default it to a base country. 

Can these rules be done at the CDN level in order to NOT have to involve a servlet/filter which would mean bypassing the dispatcher cache? 

View Entire Topic

Avatar

Avatar
Validate 1
MVP
Albin_Issac
MVP

Likes

105 likes

Total Posts

118 posts

Correct Reply

33 solutions
Top badges earned
Validate 1
Ignite 1
Give Back 5
Give Back 3
Give Back 10
View profile

Avatar
Validate 1
MVP
Albin_Issac
MVP

Likes

105 likes

Total Posts

118 posts

Correct Reply

33 solutions
Top badges earned
Validate 1
Ignite 1
Give Back 5
Give Back 3
Give Back 10
View profile
Albin_Issac
MVP

21-09-2020

I don't think so the country-specific redirect can be directly enabled in CDN atlease from the AMS perspective, please check on this

Some options to explore

1. Redirect the user from Dispatcher based on the viewer country from CDN - refer https://medium.com/@techforum/geo-location-based-redirects-with-cloudfront-and-apache-redirect-web-t... for more details

2. Use Google Geo Location API to redirect the users to a specific website based on location

3. Tag the website to a specific country in Google Search Console/enable hreflang for the websites so that google search results list the websites specific to countries

4. Use Apache modules like mod_geoip to map the IP address to country code, redirect the user based on the country code

Regards

Albin I

www.albinsblog.com