Skip to content
Snippets Groups Projects
Commit 2cff5827 authored by Andreas Gohr's avatar Andreas Gohr
Browse files

always send 404 for sitenames special to robots FS#843

darcs-hash:20081012131916-7ad00-ef46252e34c948bf377422877a6116ed2a66ac17.gz
parent 3e63b73b
No related branches found
No related tags found
No related merge requests found
......@@ -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');
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment