简体   繁体   中英

TYPO3 6.2 - 404 error page with realurl

I've a TYPO3 CMS 6.2.15 running with realurl and the following LocalConfiguration.php:

'FE' => array(
    'pageNotFound_handling' => '/404/',
    'pageNotFound_handling_statheader' => "HTTP/1.0 404 Not Found",
    ...
), ...

I've created a page called "404" and tested if I can call that page like page.ending/404/ . It works. But now I try a non-existing page like page.ending/asdfasdf/ and get the default Apache Unauthorized page. Why is that?

At least I get the correct 404 header information but why does it not redirect to the 404 page?

您必须将相应的行更改为:

'pageNotFound_handling' => 'REDIRECT:<your-404-url>',

First check php function curl is enable or not in your php.ini file. if curl is disable then first enable this function.

Then use below code in your LocalConfiguration.php file.

'FE' => [
    'pageNotFound_handling' => '/your-page-name/',
],

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM