Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

AEM 6.4 Internal redirects not working

Arun_007
Level 2
Level 2

Hi All,

 

Happy new Year.

I am trying to configure the internal redirects in AEM 6.4 publishers. The requirement is to redirect the base url to the correct landing page.

 

I have done the below things:

1. created map.publish.env nodes under /etc with the sling:match and sling:internalRedirect values.

2. verified the "Apache Sling Resource Resolver Factory" in configMgr for correct node being provided for the mapping

3. In the jcrresolver /system/console/jcrresolver, I have verified below:

    Namespace Mangling - Enabled

    Mapping Location - map.publish.env

    Configuration Test is also successfully resolving the url to the specific path.

 

But after this during the testing of the url in browser, It says below:

    The requested URL / was not found on this server.

 

Could someone please help me if am missing something? It would be very helpful.

 

Thanks,

Arun.

 

1 Accepted Solution
jbrar
Correct answer by
Employee
Employee

Can you check if the mapping was actually applied by AEM:

 

- Go to http://<host>:<port>/system/console/jcrresolver

- Under "Mapping Map Entries", check if the entries are appearing there.

 

You can also setup a DEBUG logger on "org.apache.sling.resourceresolver" to check how the resolution is happening and which resource resolver settings are being applied.

View solution in original post

4 Replies
Jörg_Hoh
Employee
Employee

My best guess is that it's a permission thing. Login with "admin" via CRXDE and then do the same request again to validate this assumption.

Arun_007
Level 2
Level 2
We are accessing the sites by a load balancing urls. I have given the admin permissions for the anonymous user and tested, still not found error only. Can you please tell me how to see/log the incoming url to publisher from the dispatcher?
Vish_dhaliwal
Employee
Employee
Check the access.log and request.log files in crx-quickstart/logs
jbrar
Correct answer by
Employee
Employee

Can you check if the mapping was actually applied by AEM:

 

- Go to http://<host>:<port>/system/console/jcrresolver

- Under "Mapping Map Entries", check if the entries are appearing there.

 

You can also setup a DEBUG logger on "org.apache.sling.resourceresolver" to check how the resolution is happening and which resource resolver settings are being applied.

View solution in original post