olivier demah a �crit :

how do we make a "rewrite rules"-like with cocoon ?
when cocoon meets http://domain.com/user_nick/foxmask
i want it to do http://domain.com/blog_do-list-news.html?user_nick=foxmask


if i do http://domain.com/user_nick/foxmask i get the error "Resource not found."
/home/mblog/build/webapp/user_nick/sitemap.xmap (No such file or directory)


in the /home/mblog/build/webapp/sitemap.xconf i'd written :
<map:match pattern="user_nick/*">
<map:redirect-to uri="/blog_do-list-news.html?user_nick={1}"/>
</map:match>



regards.

as i used the default sitemap.xml provides by cocoon i met problem to make this working
so as steven suggested to me (on #cocoon)
i made a directory in my webapp : (webapp/mblog) and then from here i removed all unacessary things in my sitemap.xconf, like others match pattern.
and now my pipeline looks like :


   <map:match pattern="user_nick/*">
       <map:redirect-to uri="/mblog/blog_do-list-news.html?user_nick={1}"/>
   </map:match>


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to