From: Ian Jackson Date: Tue, 25 Aug 2009 17:56:43 +0000 (+0100) Subject: dhandler turns / into /lookup for us, and gives 404s too X-Git-Tag: 3.4~101 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~yarrgweb/git?p=ypp-sc-tools.web-test.git;a=commitdiff_plain;h=f986bd26321e2048bb807269d295eb6983da1acb dhandler turns / into /lookup for us, and gives 404s too --- 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> +} +