Expand my Community achievements bar.

Guidelines for the Responsible Use of Generative AI in the Experience Cloud Community.
SOLVED

CQ resource resolver

Avatar

Level 4

Please look this forum...http://forums.adobe.com/message/5545732#5545732..

localhost_any has sling match="abc.com/ABC/" and internalredirect has "abc.com/content/abc/" so when i access website abc.com/ABC  i see current path in browser modified like http://abc.com/ABC...this is fine what i expected. but when i accessed with direct(complete URL). It resulted shortened/modified URL in browser.

.i.e if  type direct URL  "http://abc.com/content/abc/en.html" It redirects to http://abc.com/ABC/en.html rather it should show same  complete URL in browser.

I have tried with another localhost_entry into /ect/map/http where sling:match= "abc.com/content/abc/ and internalredirect=" abc.com/content/abc....It appears that this approach is not correct.

Could you please suggest something on this line?

Thanks Chandra

1 Accepted Solution

Avatar

Correct answer by
Level 8

Chandra, if you need to rewrite links to match the redirect, there is an example in the docs about using Sling Rewriter:

http://dev.day.com/docs/en/cq/current/deploying/dispatcher/disp_domains.html#Rewriting%20Links%20to%...

 

scott

View solution in original post

5 Replies

Avatar

Level 9

Hello Chandra,

Based on above example it seems like your system has been configured to map above mentioned url accordingly. To validate it plz go to http://<host>:<port>/system/console/jcrresolver to see all your mapping and also you can use resolver configuration to test your use case. If you wont able to find this here then certainly check your web server redirection configuration as well.

Please let me know if you need more information.

Thanks,

Pawan

Avatar

Correct answer by
Level 8

Chandra, if you need to rewrite links to match the redirect, there is an example in the docs about using Sling Rewriter:

http://dev.day.com/docs/en/cq/current/deploying/dispatcher/disp_domains.html#Rewriting%20Links%20to%...

 

scott

Avatar

Level 4

I walked through to Adobe PS and i am to hear from them..Thanks for your response and advice but none of them helping.

Avatar

Level 4

Create two entry in http map.

 

abc.com/module1
abc_com/module2

Set intrenalredirect to /content/site and please see what happens.. navigation link for module1 will appears for module2 as well ...more details.

if you access module1  your navigation will look like  http://abc.com/module1/page1.html and http://abc.com/module1/page2.html

Now try to access through module2.. your navigation will still look like http://abc.com/module1/page1.html   http://abc.com/module1/page2.html rather  http://abc.com/module2/page1.html .

If user is accessing site via module2 why he should see module1 navigation? but that's how CQ is responding now.