[TYPO3-english] 404 status code

Falk Gebauer fgebauer at 3pc.de
Mon Jun 29 13:38:10 CEST 2015


Hi Matt,

it's important that the Typo3 can actually read content from itself. It 
uses curl for this. If something goes wrong, the fallback is a redirect 
like in your case. So you should check for php5-curl etc.
And maybe take a look in TYPO3\CMS\Core\Utility\GeneralUtility:: 
getUrl(). This function is used to get the content of the 404 page. Also 
you can try ['FE']['pageNotFound_handling'] = /page-not-found/ .

Cheers Falk

Am 25.06.15 um 15:00 schrieb Matt Clough:
> Hi All,
>
> Could anybody help me with setting up Typo3 to produce the correct 
> status code on page not found.
>
> I am using Typo3 6.2.13 with RealURL
> I have the following set
>
> ['FE']['pageNotFound_handling'] = http://mydomain.com/page-not-found/
> [FE][pageNotFound_handling_statheader] = HTTP/1.1 404 Not Found
>
> This work fine, when an incorrect url is entered it redirects you to 
> the page not found page. The only problem is that it doesn't send the 
> correct header code. it shows a 303 rather than a 404. How can I set 
> this up to get the correct header response code??
>
> Thanks
>
> Matt
> _______________________________________________
> TYPO3-english mailing list
> TYPO3-english at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english

-- 
Falk Gebauer
fgebauer at 3pc.de

-----------------------------------------------
3pc GmbH
Neue Kommunikation

Prinzessinnenstraße 1
10969 Berlin
Tel.: 030 - 28 51 98 - 0
Fax: 030 - 28 51 98 - 28
info at 3pc.de
3pc.de


-----------------------------------------------
3pc GmbH
Neue Kommunikation
Büro Süd

Andreas-Hofer-Straße 11
73730 Esslingen
Tel.: 0711 - 16 12 15 31
sued at 3pc.de

-----------------------------------------------
Geschäftsführer
Armin Berger

Amtsgericht Berlin Charlottenburg
HRB 794 28
USt-IdNr.: DE217652890

-----------------------------------------------
facebook.com/3pc.de
plus.3pc.de
twitter.com/3pc
flickr.com/photos/3pc



More information about the TYPO3-english mailing list