Liftでページが見つからないとき、指定したページへ飛ばす方法。
Boot.scalaに以下を記述することで、404.htmlへ飛ばすことができる。
class Boot {
def boot {
...
LiftRules.uriNotFound.prepend(NamedPF("404handler"){
case (req,failure) =>
NotFoundAsTemplate(ParsePath(List("404"),"html",false,false))
})
...
}
}