Hello,
I would want to have the vanity url to redirect to correct geo location
Say I have vanity url https://www.abc.com/gk420d
I am based in Europe, then I should land on /gb/en/
The page will look like https://www.abc.com/gb/en/abc.html
if I am based in US then I should land on /us/en/
The page will look like https://www.abc.com/us/en/abc.html
How to achieve this , could you please provide pointers
The layers of url are
1>Akamai
2>AEM dispatcher
3>AEM publisher
Also what logger I have to add in AEM to check when vanity url we hit , the url it is getting redirected .
I want to check in the logger , so please provide the package details I could add for checking
Regards,
Srinivas
Solved! Go to Solution.
Views
Replies
Total Likes
You have to use LogLevel Directive [1] to track logs at apache level, setting logs at debug level will allow you to track request processing.
[1] https://httpd.apache.org/docs/2.4/mod/core.html#loglevel
Views
Replies
Total Likes
Hi @srinivas_chann1,
Please go through similar thread here
Geo Location Based Redirects: https://www.albinsblog.com/2020/07/geo-location-based-redirects-with-cloudfront-cdn-and-apache.html#...
Hope that helps!
Regards,
Santosh
Could you please provide the below
Also what logger I have to add in AEM to check when vanity url we hit , the url it is getting redirected .
I want to check in the logger , so please provide the package details I could add for checking in loggers
Views
Replies
Total Likes
I have used the below approach for one of my clients:
SetEnvIfNoCase ^Akamai-Viewer-Country$ (AU) COUNTRY=au
SetEnvIfNoCase ^Akamai-Viewer-Country$ (DE) COUNTRY=us
RewriteCond %{REQUEST_URI} ^/gk420d
RewriteRule ^/(.*) /${COUNTRY}/en/abc.html [PT,NC,L]
Could you please provide the below
Also what logger I have to add in AEM to check when vanity url we hit , the url it is getting redirected .
I want to check in the logger , so please provide the package details I could add for checking
Views
Replies
Total Likes
You have to use LogLevel Directive [1] to track logs at apache level, setting logs at debug level will allow you to track request processing.
[1] https://httpd.apache.org/docs/2.4/mod/core.html#loglevel
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies