How do I forward requests from one sub-sitemap to another?

 

I have 2 submaps under coicoon

            Sub1

            Sub2

 

Whenerver I get a pattern

            Sub1/resource1/**

 

I need to forward it to say

            Sub2/resource2/**

 

I do not want to do a map:redirect because this will cause any of the request parameters to vanish (as map:redirect, I guess creates a new request)..

 

Is map:mount the thing to do as if yes can be do a mount from sub-sitemap to another for eg

            In Sitemap for Sub1

                        <map:pipeline>

               <map:match pattern="resource1/****">

                                    <map:mount uri-prefix="../Sub2/resource2" src=""../Sub2/" check-reload="yes"/>  

               </map:match>

            </map:pipeline>

 

 

Has anybody have faced this problem ? otherwise I have to duplicate sitemap entries…

 

The reason to do this is

 

I am creating sub-sitemaps for different functionalites. And in some cases there are overlaps and hence the requirement. This helps me to have different level of permissions and

Also have good degree of separation for developers..

 

 

Thnks in Advance,

Chiths

           

 

 

Reply via email to