[dokuwiki] Re: sitemap-verification with google (dokuwiki never returns 404-errors)
- From: peter pilsl <pilsl@xxxxxxxxxxxx>
- To: dokuwiki@xxxxxxxxxxxxx
- Date: Sat, 25 Mar 2006 14:43:45 +0100
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
- References:
- [dokuwiki] sitemap-verification with google (dokuwiki never returns 404-errors)
- From: peter pilsl
- [dokuwiki] Re: sitemap-verification with google (dokuwiki never returns 404-errors)
- From: Anika Henke
- [dokuwiki] Re: sitemap-verification with google (dokuwiki never returns 404-errors)
- From: peter pilsl
- [dokuwiki] Re: sitemap-verification with google (dokuwiki never returns 404-errors)
- From: Anika Henke
Other related posts:
- » [dokuwiki] sitemap-verification with google (dokuwiki never returns 404-errors)
- » [dokuwiki] Re: sitemap-verification with google (dokuwiki never returns 404-errors)
- » [dokuwiki] Re: sitemap-verification with google (dokuwiki never returns 404-errors)
- » [dokuwiki] Re: sitemap-verification with google (dokuwiki never returns 404-errors)
- » [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();
.
-- 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
- [dokuwiki] sitemap-verification with google (dokuwiki never returns 404-errors)
- From: peter pilsl
- [dokuwiki] Re: sitemap-verification with google (dokuwiki never returns 404-errors)
- From: Anika Henke
- [dokuwiki] Re: sitemap-verification with google (dokuwiki never returns 404-errors)
- From: peter pilsl
- [dokuwiki] Re: sitemap-verification with google (dokuwiki never returns 404-errors)
- From: Anika Henke