[TYPO3-english] pageNotFound_handling does not throw 404 response code
bedlamhotel at gmail.com
Thu Jan 7 16:13:11 CET 2010
On Thu, Jan 7, 2010 at 3:41 AM, Sebastian Gebhard
<sebastian.gebhard at gmail.com> wrote:
> Hi *,
> I have
> $TYPO3_CONF_VARS['FE']['pageNotFound_handling'] = '/error/';
> $TYPO3_CONF_VARS['FE']['pageNotFound_handling_statheader'] = 'HTTP/1.0 404
> Not Found';
> $TYPO3_CONF_VARS['SYS']['curlUse'] = '1';
> Now when I type in www.eample.com/nonexistingpage I get a 302 to /error/
> which returns 200.
> My project is using TYPO3 4.2.10 and realurl 1.7
> Any clues what could be wrong?
> Mind that I do not want to read a static file from filesystem as 404, but I
> do want to show a actual TYPO3 page to display a sitemap, correct
> advertising, etc.
I think the problem may be that you're using a realurl-generated path
to the 404 page instead of just identifying it by its *actual* URL:
/index.php?id=123. If you think about it, there is no good reason to
use the realurl path to refer to an error page since the error page is
NEVER requested by that path, and is only ever shown at the requested
(but nonexistent) url.
More information about the TYPO3-english