I have an AEM environment where I uploaded a package containing certain pages into the Package Manager. For example, I am currently on the /content/demo page, and the uploaded package contains pages under /content/sample/*. After uploading the package in the Publish environment, the redirection works successfully there, but it does not work on the Dispatcher server. Do I need to make any changes to the rewrite rule for the pages to reflect properly?
Views
Replies
Total Likes
@Murali__D : Can you explain a bit more detail about it ? The redirect you are referring to, is it a vanity redirect , sling redirect ? There could be a possibility where you have a rewrite rule in the dispatcher for the given content directory and it might be interfering with the redirects.
Views
Replies
Total Likes
Hello, @Ashwani-Agrawal , Thank you for your response. Above question is bit confusing So below I mentioned clearly
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 : This is happening because you don't have URL mapping set up in your publish AEM server. Follow the steps as below :
Try this configuration and update us if this works.
Views
Replies
Total Likes
@Ashwani-Agrawal , Thanks you.
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
Hi @Murali__D : do you have rewrite rule set up in your vhost file as mentioned in my previous comment (step 5)
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies