[dokuwiki] Re: sitemap-verification with google (dokuwiki never returns 404-errors)


Yes, this option is quite new (3 or 4 months old, I think).
You should consider switching to a newer DokuWiki version. But only for this send404 option alone, it is not necessary. Because there are only 3 lines in the current ./doku.php that do the trick. (I hope I haven't missed anything, though!?)
If you don't want to update, you could just add the following lines into your ./doku.php:
if($conf['send404'] && !$INFO['exists']){
header('HTTP/1.0 404 Not Found');
}
right after
$INFO = pageinfo();
.


**perfect** !!

After inserting this lines, the 404 is sent and my google-verification worked.

thnx a lot.

I tried to switch to the newest dokuwiki-version, but my template acts strange then (changed colors etc.). I use the lilas-templates with heavy homemade modifications. It will take a while until I manage to find the problems (obviously some style-stuff)

thnx,
peter


-- mag. peter pilsl goldfisch.at IT- & dataconsulting tel: +43 650 3574035 tel: +43 1 8900602 fax: +43 1 8900602 15 pilsl@xxxxxxxxxxxx -- DokuWiki mailing list - more info at http://wiki.splitbrain.org/wiki:mailinglist

Other related posts: