Expand my Community achievements bar.

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
Community Advisor

@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
Community Advisor

@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