aboutsummaryrefslogtreecommitdiff
path: root/doc/plugins/404.mdwn
blob: 53dace3c90800c4aa3e5c9d1807c70fadc9c7b43 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
[[!template id=plugin name=404 author="[[Simon_McVittie|smcv]]"]]
[[!tag type/web]]

This plugin lets you use the IkiWiki CGI script as an Apache 404 handler,
to give the behaviour of various other wiki engines where visiting a
nonexistent page provides you with a link to create it.

To achieve this, put something like this in the wiki's Apache configuration
file:

    ErrorDocument 404 /ikiwiki.cgi

(The path here needs to be whatever the path is to the ikiwiki.cgi from
the root of your web server.)

Or put something like this in the wiki's Lighttpd (>=1.4.17) configuration file:

    server.error-handler-404 = "/ikiwiki.cgi"