[TYPO3-core] RFC: pageNotFound_handling HTTP status fix

Dmitry Dulepov dima at spamcop.net
Sun Apr 23 12:07:31 CEST 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi!

This is a CVS patch request

Branch: HEAD

Problem: if $TYPO3_CONF_VARS['FE']['pageNotFound_handling'] is set to
absolute or relative URL, than
$TYPO3_CONF_VARS['FE']['pageNotFound_handling_statheader'] is ignored
and client is redirected to error page using code 302. This is
especially bad for search engines like Google because (1) they may not
remove such pages from their index (2) sitemaps do not work properly.

Solution: use cURL (if enabled in install tool) or fopen to fetch error
page internally and pass it to client with correct header. Pass correct
information about user agent and referrer.

Patch was asked by many people in the mailing lists in the past and
lately by Netcreators. So here it is.

Dmitry.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFES1HjRVcYnKJ8N6kRAvHjAJ9Jm6k5aNLNiZGQaYL9z+fepivEqwCgpVr6
m87Ng5xYhbmtpIE4w0V1O3s=
=jUfx
-----END PGP SIGNATURE-----
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 404.txt
Url: http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20060423/fe717684/attachment.txt 


More information about the TYPO3-team-core mailing list