diff --git a/src/main/scala/bootstrap/liftweb/Boot.scala b/src/main/scala/bootstrap/liftweb/Boot.scala index 696cfe6e..d37716c4 100755 --- a/src/main/scala/bootstrap/liftweb/Boot.scala +++ b/src/main/scala/bootstrap/liftweb/Boot.scala @@ -377,5 +377,10 @@ class Boot extends Loggable{ case MyExceptionLogger(_, _, t) => throw t // this will never happen } + + + LiftRules.uriNotFound.prepend(NamedPF("404handler"){ case (req,failure) => + NotFoundAsTemplate(ParsePath(List("404"),"html",true,false)) }) + } } diff --git a/src/main/webapp/404.html b/src/main/webapp/404.html new file mode 100644 index 00000000..fd14ef58 --- /dev/null +++ b/src/main/webapp/404.html @@ -0,0 +1,45 @@ + + + + + + +
+
+

404 Not Found

+
+

+ Sorry, we couldn't find the page you were looking for. +

+ +

+ Maybe this is because you need permission - and you are not logged in? +

+ +
+ + +
+