[TYPO3] 404 Error

Steffen Kamper steffen at dislabs.de
Thu Mar 23 21:09:11 CET 2006


me again,

i looked in the source, and in class.tslib_fe.php is the handler:

function pageNotFoundHandler($code, $header='', $reason='') {
   // Issue header in any case:
  if ($header) {header($header);}
...

$header is this one you configure with "pageNotFound_handling_statheader"

But then the first header sent is the 404 - why is the result an 302 ?
I don't get it.

Steffen

"Christopher" <bedlamhotel at gmail.com> schrieb im Newsbeitrag 
news:mailman.16495.1143143678.3122.typo3-english at lists.netfielders.de...
On 3/23/06, Steffen Kamper <steffen at dislabs.de> wrote:
>
> "Dmitry Dulepov" <typo3 at fm-world.ru> schrieb im Newsbeitrag
> news:mailman.1.1143143064.14707.typo3-english at lists.netfielders.de...
> > Hi!
> >
> > Pierre Rouwens wrote:
> >> $TYPO3_CONF_VARS['FE']['pageNotFound_handling_statheader'] = 'Status:
> >> 404 Not Found';
> >
> > This does not work with recent PHP versions. You need normal HTTP status
> > line, i.e. "HTTP/1.0 404 Bad news for you!".
>
> this ist exactly what I have - unfortunally it produces an 302
>
> Steffen

Ditto. I believe I had this working once on a test install, but I've
never been able to reproduce the correct behaviour...

-Christopher 





More information about the TYPO3-english mailing list