Expand my Community achievements bar.

Sling internal redirect does not work as expected

Avatar

Level 4

We were using the below configuration for mapping the content
org.apache.sling.jcr.resource.internal.JcrResourceResolverFactoryImpl.xml

But since we have different projects for each domain and see that on adding deploying new packages it overwrites by other project.

So  wanted to move the changes to /etc/map

I  tried creating the slingmapping node on /etc/map/http/content_markets

sling:internalRedirect  is mapped as $1/content/markets/$2

sling:match  is mapped as (.*)?/markets/(.*)?

 

i did not want to use localhost.4503 on slingmatch as my www.abc.com may be any domain


I need to hit the url http://www.abc.com/markets/amphisol-k.html it must render content on

http://www.abc.com/content/markets/amphisol-k.html

Thanks

2 Replies

Avatar

Level 7

Hi,

 

Please find the attached package and install it. Please change the extension to .zip from .txt as .zip is not allowed to be attached I had to change the extension.

You could do as many config as you want referring to the sample I attached here.

 

Thanks

Tuhin