[Typo3] Solution: RealURL and 404 error pages

Jens Bierkandt j.bierkandt at nospam.tectrend.de
Mon Aug 1 11:43:41 CEST 2005


Hi,

I want to provide a solution with RealURL and 404 error pages, because I
saw a lot of people (including myself) and search engines having
problems with this.

I'm using the great extension RealURL. When someone enters a domain that
is not found, a Typo3 error is issued, saying something like: "Error.
Reason: Segment "teststring" was not a keyword for a postVarSet as
expected!" (If 'postVarSet_failureMode' is not set (default))

Unfortunately, this page is not issuing a real 404 page not found
header. It is issuing a 200 OK header. So search engines are still
indexing this page. Yahoo finds over 56.000 pages with this error. Maybe
yours...: http://de.search.yahoo.com/search?p=postvarset+error

Solution: Just add the following line to the RealURL ext_localconf.php:
$TYPO3_CONF_VARS["FE"]['pageNotFound_handling_statheader'] = 'HTTP/1.0
404 Not Found';

You can try it here: http://www.tectrend.de/ Just add some string to the
url and you get the error page from Typo3, but with a real 404 header.
(You can check this by using either telnet or Firefox and the
WebDeveloper extension).

Jens
-- 
Jens Bierkandt
http://www.tectrend.de



More information about the TYPO3-english mailing list