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".

Do I need to do anything else to get this to work?

Paul.

[1] http://wiki.github.com/dpp/liftweb/about-url-rewriting

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to