Copyright | 2009 Henning Thielemann |
---|---|
Safe Haskell | None |
Language | Haskell98 |
When we get a request for http://foo.com/bar,
where bar
is a directory and contains an index.html,
we need to send back a redirect for http://foo.com/bar/
(i.e. add the final slash),
otherwise relative links from index.html will be relative to http://foo.com/
instead of http://foo.com/bar/.
E.g. look at http://www.haskell.org/happy/.