Quantcast
Channel: Adobe Community: Message List
Viewing all articles
Browse latest Browse all 150094

Re: AEM 6.4 Resource Resolver Mapping home page to root

$
0
0

To handle the case, you'll have to create 2 cases here:
1. Specifically for root page
2. For all pages under home pages hierarchy.

 

E.g.


localhost_4503

<?xmlversion="1.0"encoding="UTF-8"?>

<jcr:rootxmlns:sling="http://sling.apache.org/jcr/sling/1.0"xmlns:jcr="http://www.jcp.org/jcr/1.0"

    jcr:primaryType="sling:Mapping"

    sling:internalRedirect="[/content/client-site/en/home.html]"

    sling:match="www-release.newrelic.com/$"/>

 

localhost.4503

<?xmlversion="1.0"encoding="UTF-8"?>

<jcr:rootxmlns:sling="http://sling.apache.org/jcr/sling/1.0"xmlns:jcr="http://www.jcp.org/jcr/1.0"

    jcr:primaryType="sling:Mapping"

    sling:internalRedirect="[/$1,/content/client-site/en/home/$1]"

    sling:match="(.+)$"/>

 

Using the above mentioned sling mapping cases, the root page will be delivered for domain name and for below hierarchy, the anothe rule will come in picture


Viewing all articles
Browse latest Browse all 150094

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>