diff options
author | Andreas Gohr <andi@splitbrain.org> | 2008-10-12 15:19:16 +0200 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2008-10-12 15:19:16 +0200 |
commit | 2cff5827dfad5e43c9711f2cc4a8f3d012c75a78 (patch) | |
tree | e8f0557c9b0db83b82b1840b59c67ea3dcd7b447 /doku.php | |
parent | 3e63b73bba7c0924117e243a94c3e4cdb3d084f6 (diff) | |
download | rpg-2cff5827dfad5e43c9711f2cc4a8f3d012c75a78.tar.gz rpg-2cff5827dfad5e43c9711f2cc4a8f3d012c75a78.tar.bz2 |
always send 404 for sitenames special to robots FS#843
darcs-hash:20081012131916-7ad00-ef46252e34c948bf377422877a6116ed2a66ac17.gz
Diffstat (limited to 'doku.php')
-rw-r--r-- | doku.php | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -55,10 +55,10 @@ exit; } - //send 404 for missing pages if configured - if($conf['send404'] && - ($ACT == 'show' || substr($ACT,0,7) == 'export_') && - !$INFO['exists']){ + //send 404 for missing pages if configured or ID has special meaning to bots + if(!$INFO['exists'] && + ($conf['send404'] || preg_match('/^(robots\.txt|sitemap\.xml(\.gz)?|favicon\.ico|crossdomain\.xml)$/',$ID)) && + ($ACT == 'show' || substr($ACT,0,7) == 'export_') ){ header('HTTP/1.0 404 Not Found'); } |