[TYPO3-english] correct 404 handling
Oliver Rowlands
oliver at liquidlight.co.uk
Thu Dec 31 14:43:45 CET 2009
Hi Gabor,
You do not need to use EXT:error_404_handling in order to achieve this.
Instead use the following configuration in your typo3conf/localconf.php:
/**
* 404 error handling
*/
$TYPO3_CONF_VARS['SYS']['curlUse'] = 1;
$TYPO3_CONF_VARS['FE']['pageNotFound_handling'] =
http://www.domain.com/index.php?id=[your 404 page ID]';
$TYPO3_CONF_VARS['FE']['pageNotFound_handling_statheader'] = 'HTTP/1.x
404 Not Found';
HTH,
Oliver
Matyi Gábor wrote:
> Hi!
>
> Could anybody tell me, how to configure the 404 handling in typo3 properly?
>
> I installed the error_404_handling extension, and I created a 404 page.
> (not visible, name is 404).
> I configured the redirection to the page 404, and the
> [FE][pageNotFound_handling] = /404 in the install tool as it is written
> in this two page.
>
> http://typo3.org/documentation/document-library/extension-manuals/error_404_handling/0.1.1/view/1/2/
>
> http://typo3.org/development/articles/improved-404-handling/page/2/
>
> If I open a non existent page, the 404 page appears with my content, but
> the html header is 200 or 301 and not 404.
>
> What I configured wrong? Perhaps the realurl?
>
> Gabor Matyi
>
>
--
Oliver Rowlands
:: Liquid Light ::
E - oliver at liquidlight.co.uk
W - http://www.liquidlight.co.uk
T - 00 44 (0)845 6 58 88 35
F - 00 44 (0)845 6 58 44 35
More information about the TYPO3-english
mailing list