내 커뮤니티 업적 표시줄을 확대합니다.

Submissions are now open for the 2026 Adobe Experience Maker Awards.

Mark Solution

활동이 없어 이 대화는 잠겼습니다. 새 게시물을 작성해 주세요.

해결됨

How does AEM Cloud send users to correct the country?

Avatar

Level 5

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? 

1 채택된 해결책 개

Avatar

정확한 답변 작성자:
Community Advisor

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

 

 

원본 게시물의 솔루션 보기

3 답변 개

Avatar

정확한 답변 작성자:
Community Advisor

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

 

 

Avatar

Level 5
Thanks! I was wondering if the CDN would pass a header back that we can use in Apache. I wasn't sure how that is handled working with the cloud: something we have to do or already set up.

Avatar

Community Advisor
You should whitelist the specific header from CDN