Re: How to reproduce specific Friendly URL ?

Splash Forums PrettyFaces Users How to reproduce specific Friendly URL ? Re: How to reproduce specific Friendly URL ?

#20764

LaChamelle
Participant

Hello,

I read the doc, I made simple case like

http://whatever/site/siteId

http://whatever/site/siteId/channel/channelId

http://whatever/site/siteId/channel/channelId/content/contentId

But i dont understand how to map http://whatever/firstSite/aChannel/aSubChannel/myGreatContent

because there is no keyword only ids and they are variables. I should probably get with regex the “firstSite/aChannel/aSubChannel/myGreatContent” and parse by myself ?

And for the rewrite is it possible to rewrite http://whatever/site/siteId/channel/channelId/content/contentId (generated by pretty:link) to http://whatever/firstSite/aChannel/aSubChannel/myGreatContent? Or should i generate directly in the value (http://whatever/firstSite/aChannel/aSubChannel/myGreatContent) of an h:outputlink ?