Hi, New to 5.1.x, I found this rewriting very handy, basically I need to do something like this:
http://localhost:8080/username/profile should become : http://localhost:8080/profile/username, any idea? Thiago H. de Paula Figueiredo wrote: > > Em Sat, 20 Jun 2009 15:57:17 -0300, Piero Sartini <li...@pierosartini.de> > escreveu: > >> Right now, my URLs look like this: >> >> domain.tld/module/<username> for the indexpage >> then my subpages use >> domain.tld/module/subpage/<username>/<contentId> >> >> I would love to use something like >> >> domain.tld/module/<username>/subpage/<contentId> > > A project of mine has <username>.domain/page rewritten to > domain.page/<username>. It's just a matter of cheking if the URL is one > that needs to be rewritten, than use regular expressions or ordinary > string manipulation to extract the user name and the construct the new > URL. This new URL must be passed to a new Request, then you should return > it in the URLRewriterRule.process() method. Don't forget to rewrite the > outbound (Tapestry-generated) links too: domain.page/<username> to > <username>.domain/page. > >> I think the new URL rewriting support can help but I am a bit lost with >> it. Anyone has already done this? > > What exactly are your doubts? What do the examples at > http://tapestry.apache.org/tapestry5.1/guide/url-rewriting.html do not > cover? > > -- > Thiago H. de Paula Figueiredo > Independent Java consultant, developer, and instructor > http://www.arsmachina.com.br/thiago > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > > > -- View this message in context: http://www.nabble.com/Custom-URL-scheme--tp24128229p24130282.html Sent from the Tapestry - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org