title: TYPO3 404 error page redirect to home page
body: <p>TYPO3 redirects to home page instead of showing 404 error page content.</p>
  
  <p>Here is my configuration :</p>
  
  <pre><code>$GLOBALS['TYPO3_CONF_VARS']['FE']['pageNotFound_handling'] = \TYPO3\CMS\Core\Utility\GeneralUtility::getIndpEnv('TYPO3_SITE_URL') . 'error-404';
  $GLOBALS['TYPO3_CONF_VARS']['FE']['pageNotFound_handling_statheader'] = $_SERVER['SERVER_PROTOCOL'] . ' 404 Not Found';
  </code></pre>
  
  <p>If I visit <a href="http://example.com/index.php?id=33333" rel="nofollow noreferrer">http://example.com/index.php?id=33333</a> (which is a non-existing page) it works fine. But if I visit <a href="http://example.com/sdafsdfasdfpi" rel="nofollow noreferrer">http://example.com/sdafsdfasdfpi</a> (which is also a non-existing page), it redirects me to the home page.</p>
  
  <p>Does someone know how to fix that?</p>
  
  <p>Thanks</p>