TYPO3 404 handling

raw

README.rst

https://docs.typo3.org/typo3cms/InsideTypo3Reference/CoreArchitecture/Configuration/LocalConfiguration/Index.html

Taken from the install tool:

[FE][pageUnavailable_handling]

How TYPO3 should handle requests when pages are unavailable due to system problems.

empty (default)
An error message is shown.
String
HTML file or URL to show (reads content and outputs with correct headers), e.g. 'unavailable.html' or 'http://www.example.org/errors/unavailable.html'.
Prefix "REDIRECT:"
If prefixed "REDIRECT:" it will redirect to the URL/script after the prefix.
Prefix "READFILE:"
If prefixed with "READFILE:" then it will expect the remaining string to be a HTML file which will be read and outputted directly after having the marker "###CURRENT_URL###" substituted with REQUEST_URI and ###REASON### with reason text, for example: "READFILE:fileadmin/unavailable.html".
Prefix "USER_FUNCTION:"
If prefixed "USER_FUNCTION:" then it will call a user function, eg. "USER_FUNCTION:fileadmin/class.user_unavailable.php:user_unavailable->pageUnavailable" where the file must contain a class "user_unavailable" with a method "pageUnavailable" inside with two parameters $param and $ref. If the client matches [SYS][devIPmask], this setting is ignored and the page is shown as normal.
Christian Weiske Christian Weiske
owner

History