summaryrefslogtreecommitdiff
path: root/doku.php
diff options
context:
space:
mode:
Diffstat (limited to 'doku.php')
-rw-r--r--doku.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/doku.php b/doku.php
index 7913354f7..d6da8b1d0 100644
--- a/doku.php
+++ b/doku.php
@@ -53,6 +53,11 @@
//make infos about the selected page available
$INFO = pageinfo();
+ //send 404 for missing pages if configured
+ if($conf['send404'] && !$INFO['exists']){
+ header('HTTP/1.0 404 Not Found');
+ }
+
//prepare breadcrumbs (initialize a static var)
breadcrumbs();