In the dispatcher environment, when I open any page, it redirects to only one static page. For example:
http://test.domain/content/sample/page.html - works correctly.
However, the URL, http://test.domain/page.html - does not work.
It seems like the /content/sample/ part of the URL is not being hidden correctly in the background. If I use the full path starting with /content, it works fine, but the shortened path does not.
How can I resolve this issue?
Views
Replies
Total Likes
Hi @Murali__D
From what I understand you expect that:
1. http://test.domain/page.html to return the data.
2. http://test.domain/content/sample/page.html to be redirected to the shorter url.
For point 1, I would look and check in few places: your Sling Mappings ( they should be under /etc/map*), or your Dispatcher configs (rules and everything, including maybe even checking your docroot). If you can share your configs it would be easier for the community to check and provide you advice.
Couple of online resources abut how Sling Mappings work: https://sling.apache.org/documentation/the-sling-engine/mappings-for-resource-resolution.html, https://blogs.taylor-made-software.co.uk/aem/101/build/apps/sling.html
For point 2 you could write a redirect rule in Dispacther to shorten the url and redirect you: https://blog.3sharecorp.com/shortening-urls-in-aem
Views
Replies
Total Likes
Hello @Tethich , Thank you for your response
However, the URL, http://test.domain/page.html working fine in publish environments but it does not work only dispatcher server.
Views
Replies
Total Likes
I believe the things I pointed out are still applicable. Can you share dispatcher configs ? Have you checked in /etc/map if you have anything ? You can anonymize sensitive data.
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies