Redirection Not working specific pages in Dispatcher server | Community
Skip to main content
Level 2
November 18, 2024
Question

Redirection Not working specific pages in Dispatcher server

  • November 18, 2024
  • 1 reply
  • 918 views

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?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

1 reply

Level 2
November 18, 2024

@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.

Murali__DAuthor
Level 2
November 19, 2024

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?

Level 2
November 19, 2024

@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. 


Hi @murali__d : do you have rewrite rule set up in your vhost file as mentioned in my previous comment (step 5)