From f986bd26321e2048bb807269d295eb6983da1acb Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Tue, 25 Aug 2009 18:56:43 +0100 Subject: [PATCH] dhandler turns / into /lookup for us, and gives 404s too --- yarrg/web/dhandler | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 yarrg/web/dhandler diff --git a/yarrg/web/dhandler b/yarrg/web/dhandler new file mode 100644 index 0000000..2cdb09c --- /dev/null +++ b/yarrg/web/dhandler @@ -0,0 +1,13 @@ +<%perl> +my $arg= $m->dhandler_arg; +if ($arg =~ m,^/?$,) { + $m->redirect('lookup'); +} else { + $r->header_out('Status','404 Not found'); + +Page not found - YARRG +

404 YARRG component not found

+<% $arg |h %> +<%perl> +} + -- 2.30.2