Charles,
I'd do a DispatchPF... pseudo-code:
val oldToNew: Map[String, String] = Map(....)
DispatchPF {
case Req(path, _, _) if oldToNew.contains(path.mkString("/", "/", "")) =>
RedirectResponse(path.mkString("/", "/", ""))
}
On Sat, Jan 10, 2009 at 12:48 PM, Charles F. Munat <[email protected]> wrote:
>
> I have a new Lift site online -- still fine tuning the look in IE --
> here, if anyone is interested:
>
> http://tinibigs.com/
>
> This one (as is true with pretty much all my sites) is a sort of
> mini-CMS. The client can log in and change almost anything on the site
> (except the look & feel). This includes changing the text and images on
> any page (with Markdown), creating new events, updating the drink menu,
> adding new reviews, administering contacts, mailing list subscriptions,
> and reservation requests, and, of course, administering site users.
>
> Since this replaces the previous site, I'd like to set up redirects from
> old pages to new pages. What is the easiest way to do this in Lift. (I
> have a whole list of redirects.)
>
> Also, whoever was adding Lift sites to a list is welcome to add this
> one. More coming very soon as they go online.
>
> Chas.
>
> >
>
--
Lift, the simply functional web framework http://liftweb.net
Collaborative Task Management http://much4.us
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
-~----------~----~----~----~------~----~------~--~---