Rewrites are recursive... they will keep getting applied until there are
none more rewrites to apply. You could store the retrieved path in a
requestvar. Then you put a guard in your pattern tests the requestvar.
With that being said, I've been thinking about a flag on the rewriteresponse
that says "don't re-run the tests."
On Dec 2, 2008 11:30 AM, "Tim Perrett" <[EMAIL PROTECTED]> wrote:
Hey guys,
Is there anyway to rewrite from the root path? For instance:
LiftRules.prependRewrite {
case RewriteRequest(ParsePath(page, _,_,_), _, _) =>
RewriteResponse(List("index"), Map("page" -> page.last))
}
Lift appears to get stuck in some kind of infinite loop when you do
this - however id like to route literally all requests to point?
DPP suggested not using template loading, and to use snippets instead,
but as far as i can see, this is the limitation of rewriting?
Cheers
Tim
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---