Hello, I would like to explore the Redirection options available for one of our scenario. We have Two different AEM instances for different purposes (NOT meaning a stand-by instance here).
When there is a page request to 'PAGE A' located in AEM Instance-1, we want a different page, say 'PAGE B' on AEM Instance-2 to be served. I am aware of options like Page Redirect configurations on Page Properties, Dispatcher Url rewriting etc, Kindly suggest the most Optimal & Flexible option to achieve this redirection.
Also kindly clarify if "Page Redirection" field under the Advanced Page Properties has the capacity to redirect to other page within the Same instance only ?
Solved! Go to Solution.
Topics help categorize Community content and increase your ability to discover relevant content.
Views
Replies
Total Likes
Fastest redirect is the one happening closest to client browser. Client-side redirects is not an option. The next closest choice would be CDN redirects. Do you have Akamai/Fastly CDN? Edge redirector is the best option. If no, next layer is Apache Http server using Dispatcher rules. You can write Proxy rewrites, so first AEM dispatcher will reverse proxy to second AEM server.
I have used RewriteMap
A very good option. Basically write a servlet that returns exact .txt map file entries. Map file is stored at dispatcher. It was AEM6.5 Onprem. We had cron job running on jenkins that nightly refreshes this .txt mapfile.Every request, apache asserts against Map entry and redirects accordingly. Same can be elevated to CDN edge redirector if tool allows.
Preferably avoid AEM server-side redirects like Sling redirects or the ACS Commons tool. We want to avert traffic hitting AEM server. Reduce AEM traffic and divert at higher layers. Try CDN or stick to dispatcher only.
where a request for 'PAGE A' on AEM Instance-1 should be redirected to 'PAGE B' on AEM Instance-2, you can consider the following options:
Dispatcher Url Rewriting:
AEM Vanity URLs and Redirects:
Servlet and Sling Mapping:
Thanks for the valuable inputs. Let me explore more on the Url Rewriting.
Fastest redirect is the one happening closest to client browser. Client-side redirects is not an option. The next closest choice would be CDN redirects. Do you have Akamai/Fastly CDN? Edge redirector is the best option. If no, next layer is Apache Http server using Dispatcher rules. You can write Proxy rewrites, so first AEM dispatcher will reverse proxy to second AEM server.
I have used RewriteMap
A very good option. Basically write a servlet that returns exact .txt map file entries. Map file is stored at dispatcher. It was AEM6.5 Onprem. We had cron job running on jenkins that nightly refreshes this .txt mapfile.Every request, apache asserts against Map entry and redirects accordingly. Same can be elevated to CDN edge redirector if tool allows.
Preferably avoid AEM server-side redirects like Sling redirects or the ACS Commons tool. We want to avert traffic hitting AEM server. Reduce AEM traffic and divert at higher layers. Try CDN or stick to dispatcher only.
Thanks for the valuable suggestions. Understand that the better solution is to redirect on the top level of the landscape.
Views
Likes
Replies