Hi Philip,
Just add something like that to your Boot.scala
// Rewrite some URLs
LiftRules.rewrite.prepend(NamedPF("test rewrite") {
case RewriteRequest(ParsePath(List("test", stuff1, stuff2), _, _,_),
_, _) =>
RewriteResponse("test_page" :: Nil, Map("stuff" -> stuff1,
"other-stuff" -> stuff2))
})
The page test_page will then receive parameters, get them via
S.param("stuff").
It’s better not to name your page the same as the URL path fragment ("test")
to avoid looping rewrites.
Adapt the pattern matching and the RewriteResponse to your parameters.
Hope it helps,
Thiébaut
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Lift" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/liftweb?hl=en
-~----------~----~----~----~------~----~------~--~---