CQ resource resolver | Community
Skip to main content
Chandra_gupta
Level 4
October 16, 2015
Solved

CQ resource resolver

  • October 16, 2015
  • 5 replies
  • 1029 views

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

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

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%20Non-HTML%20Files

 

scott

5 replies

Pawan-Gupta
Level 8
October 16, 2015

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

Scott_Brodersen
Scott_BrodersenAccepted solution
Level 8
October 16, 2015

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%20Non-HTML%20Files

 

scott

smacdonald2008
Level 10
October 16, 2015

Did you try the approach suggested in this knowledge base article:

http://helpx.adobe.com/cq/kb/HowToConfigureLinkRewriting.html

Chandra_gupta
Level 4
October 16, 2015

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

Chandra_gupta
Level 4
October 16, 2015

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.