This can be achieved more or less by using $TYPO3_CONF_VARS [ 'FE' ][ 'pageNotFound_handling' ] configuration parameter. We can use REDIRECT option here :) This topic can be closed.