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
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

What is Best Geolocation Solution for Experience Cloud.?

Avatar

Level 2

Hello All, 

 

What do you prefer for redirecting Geolocations? If your site is running to Multiple countries.

 

1) aem form html 5 or Google Api for geolocation

2) Adobe CDN or Akamai CDN.?

 

Any inputs will be appreciated. 

1 Accepted Solution

Avatar

Correct answer by
Level 6

@pathikparmar - If you have a CDN in-place then you need to enable/pass a country-code header so that it can be passed to the apache dispatcher. 

RewriteCond %{REQUEST_URI} ^/content/we-retail.html
RewriteCond %{HTTP:X-COUNTRY-Code} ^US$
RewriteRule ^.*$ /content/we-retail/us/en.html [R=302,L]

Please note that X-COUNTRY-CODE should be the header coming from CDN like Akamai/Cloudfront/Fastly

 

Hope this helps!
Jineet

View solution in original post

1 Reply

Avatar

Correct answer by
Level 6

@pathikparmar - If you have a CDN in-place then you need to enable/pass a country-code header so that it can be passed to the apache dispatcher. 

RewriteCond %{REQUEST_URI} ^/content/we-retail.html
RewriteCond %{HTTP:X-COUNTRY-Code} ^US$
RewriteRule ^.*$ /content/we-retail/us/en.html [R=302,L]

Please note that X-COUNTRY-CODE should be the header coming from CDN like Akamai/Cloudfront/Fastly

 

Hope this helps!
Jineet