Hello, which way is the best to achieve this. Due to multi environment the URL match to be redirected to repository an example
https://test.xyz.com/xxxor https://test.abc.com/xxx to redirect repository /content/xxx.
Whereas the host i.e. URL match is changing environment to environment and content repository remain the same.
The xys and abc is host in my case.
Any info. Thx
Views
Replies
Total Likes
I think you are concerned about shorting the URL - /content/xxx to /xxx, this can be achieved through dispatcher -virtual host and publisher - /etc/map.publish configuration.
Add Dispatcher rule to shortens the URL - /content/xxx/* to /xxx/*
Configure individual DNS in publisher /etc/map.publish/http and /etc/map.publish/https nodes to map the shortened URL to repository path
Refer the following URL for more details - https://www.albinsblog.com/2015/05/multi-site-management-in-aem.html
Regards
Albin I
Views
Replies
Total Likes
Hi Anand,
You have some content for different host. Just setup two virtual host in webserver pointing to same aem instance.
Thanks,
Views
Replies
Total Likes
We don't want to this due to different reason.
Views
Replies
Total Likes
@albinissac - /etc/map.publish is ok when you have minimum environment but when we have many environment with different host it does not work. An example in dev we have 50 nodes and each node has unique host name. Hence the configuration would be too large in this case. So like to see how we can leverage run-mode or other mean to inject at match i.e. dev-001.abc.com/xxx whereas the dev-001 should be dynamic based on run mode or something...
Views
Replies
Total Likes