On Fri, Aug 7, 2009 at 9:28 AM, pabraham <[email protected]>wrote:
>
> Hello again,
>
> I've been looking at the article on URL rewriting at [1] and am having
> a problem getting a URL rewrite to work.
>
> My sitemap contains Menu(Loc("Customers",
> "customer"::"list"::"1"::Nil, "Customers")), so clicking on Customers
> gives a link to /customer/list/1.
>
> My rewrite is:
> LiftRules.rewrite.append {
> case RewriteRequest(ParsePath("customer"::"list"::page::Nil, _,
> _, _), _, _) =>
> RewriteResponse("cust" :: Nil, Map("page" -> page))
> }
>
> so clicking on /customer/list/1 should show cust.html and give me a
> "page" parameter. The cust.html file exists.
>
> Unfortunately I get "The Requested URL /customer/list/1 was not found
> on this server".
Are you using Lift 1.0 or 1.1-SNAPSHOT/M4?
Is "cust" in your SiteMap?
>
>
> Do I need to do anything else to get this to work?
>
> Paul.
>
> [1] http://wiki.github.com/dpp/liftweb/about-url-rewriting
>
> >
>
--
Lift, the simply functional web framework http://liftweb.net
Beginning Scala http://www.apress.com/book/view/1430219890
Follow me: http://twitter.com/dpp
Git some: http://github.com/dpp
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---