[Typo3] typo3, realurl and 404

Miroslav Monkevic miroslavm at centras.lt
Tue Nov 22 15:08:15 CET 2005


Hi Pawel,

This morning I fixed similar behavior by setting   
$TYPO3_CONF_VARS['EXTCONF']['realurl']['_DEFAULT']['init']['respectSimulateStaticURLs'] 
=> 0.

If this is not your case I would suggest to swap realurl config to 
something basic like below to find out if realurl has something to do 
with it. (Don't forget to clear configuration cache :)

//RealURL configuration
$TYPO3_CONF_VARS['EXTCONF']['realurl']['_DEFAULT'] = array(
    'init' => array(
        'enableCHashCache' => 1,
        'enableUrlDecodeCache' => 1,
        'enableUrlEncodeHash' => 1,
        ),
    'rewrite' => array(
        ),
    'preVars' => array(
        ),
    'pagePath' => array(
         'type' => 'user',
        'userFunc' => 
'EXT:realurl/class.tx_realurl_advanced.php:&tx_realurl_advanced->main',
        'spaceCharacter' => '-',
        'languageGetVar' => 'L',
        'expireDays' => 3
        ),
    'fileName' => array (
        'index' => array(
            'page.html' => array(
                'keyValues' => array (
                    'type' => 1,
                        ),
                ),
            ),
        'print.html' => array(
            'keyValues' => array (
                'type' => 98,
                ),
            ),
        ),
    'fixedPostVarSets' => array(
        ),
    'postVarSets' => array(
        '_DEFAULT' => array(
             ),
        ),
    );


Pawel Krawczyk (IDG) wrote:
> I've just came up to a problem with generating 404 not-found pages.
> Google doesn't like websites which reply with codes other than 404 to
> non-existent pages. That's good policy, but causes some problems with
> Typo3 to achieve.
>
> Using previous posts from this mailing list I've solved problem of
> "return closest good page instead of 404" even with realurl installed.
>
> However, I've come up to a problem which I can't solve because I don't
> know which module is responsible for this behaviour. Specifically, my
> website returns 404 for non-existent pages, but still returns 200 status
> for SOME of them.
>
> That's what Google checks. The page/file doesn't exist but website
> returns 200 mainpage (wrong):
> http://kabardians.com/GOOGLE404probea95361cb8d35071a.html
>
> If you try you'll see correct 404 error:
> http://kabardians.com/GOOGLE404probea95361cb8d35071a
>
> This also doesn't exists and returns 404:
> http://kabardians.com/laksjdlaksdj
>
> This one doesn't exists BUT it returns 200 mainpage:
> http://kabardians.com/laksjdlaksdj.a
>
> As you see the difference is ".a" or ".html", whatever it is it's the
> extension ".anything" that changes the error behaviour.
>
> I can't find which module is changing this. It's not Apache's
> mod_rewrite for sure, so it has to be either Typo3 core or realurl.
>
> Any ideas?
>   

-- 
Best regards
Miroslav




More information about the TYPO3-english mailing list