summaryrefslogtreecommitdiff
path: root/doku.php
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2005-11-25 13:36:14 +0100
committerAndreas Gohr <andi@splitbrain.org>2005-11-25 13:36:14 +0100
commit2649b1a40f165832593df5b4b021fd3aa5a2ccd3 (patch)
tree16332f8cd1f2b3c273b4620b85e64fc9565498f5 /doku.php
parent24bad1d153084f1ef349f99982b331ca5f3bd0fa (diff)
downloadrpg-2649b1a40f165832593df5b4b021fd3aa5a2ccd3.tar.gz
rpg-2649b1a40f165832593df5b4b021fd3aa5a2ccd3.tar.bz2
option to send 404 header for missing pages
darcs-hash:20051125123614-7ad00-42e0ab6a594e177603175ee37467fc2bdd45d2cb.gz
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();