aboutsummaryrefslogtreecommitdiff
path: root/doc/plugins/404.mdwn
diff options
context:
space:
mode:
authorhttp://docwhat.org/ <docwhat@web>2011-06-08 19:17:32 +0000
committeradmin <admin@branchable.com>2011-06-08 19:17:32 +0000
commit06a9e1cc41c3b7beb88387405c6a7d1e712ebfb2 (patch)
tree4da5ea40be9f350d7e79ac9b02ffc147595e4eb9 /doc/plugins/404.mdwn
parent65b6d1eed41378c39fe3d694f921f27fa30a4412 (diff)
downloadikiwiki-06a9e1cc41c3b7beb88387405c6a7d1e712ebfb2.tar
ikiwiki-06a9e1cc41c3b7beb88387405c6a7d1e712ebfb2.tar.gz
Diffstat (limited to 'doc/plugins/404.mdwn')
-rw-r--r--doc/plugins/404.mdwn13
1 files changed, 7 insertions, 6 deletions
diff --git a/doc/plugins/404.mdwn b/doc/plugins/404.mdwn
index ab6ac4dea..db86a13b8 100644
--- a/doc/plugins/404.mdwn
+++ b/doc/plugins/404.mdwn
@@ -5,15 +5,16 @@ 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:
+To enable the 404 handler you need to:
- ErrorDocument 404 /ikiwiki.cgi
+1. Edit your `.setup` file and add `404` and `goto` to the `add_plugins` line.
+2. Add a 404 error document handler in your Apache configuration:
-(The path here needs to be whatever the path is to the ikiwiki.cgi from
-the root of your web server.)
+ `ErrorDocument 404 /url/path/to/ikiwiki.cgi`
-This plugin might also be useful on some non-Apache web servers, if they provide the
+ Where `/url/path/to` is the path portion of the URL to the `ikiwiki.cgi` binary.
+
+This plugin might also be useful on non-Apache web servers, if they provide the
`REDIRECT_STATUS` and `REDIRECT_URL` environment variables to their 404 handlers.
`REDIRECT_STATUS` should be `404` and `REDIRECT_URL` should be the path
part of the URL (for instance it would be `/plugins/404/` if this page was missing).