title: TYPO3 9.5 Speaking URL - How to rewrite/redirect former RealUrl pages suffixed .html
body: <p>How can I permanently rewrite or redirect former from realurl suffixed .html pages to the new implemented URL?</p>
  
  <p>So far I didn't see any solution in the API Overview -> Site Handling. Or do I have to do this in the .htaccess file?</p>
  
  <p>I just upgraded my website from TYPO3 8.7 LTS to 9.5 LTS.</p>
  
  <p>In 8.7 I used realurl for Speaking URLs with the configuration:</p>
  
  <pre><code>'www.mydomain.local' =&gt;
      array (
          'init' =&gt;
              array (
                  'appendMissingSlash' =&gt; 'ifNotFile,redirect[301]',
                  'emptyUrlReturnValue' =&gt; '/',
              ),
          'pagePath' =&gt;
              array (
                  'rootpage_id' =&gt; '1',
              ),
          'fileName' =&gt;
              array (
                  'defaultToHTMLsuffixOnPrev' =&gt; true,
                  'acceptHTMLsuffix' =&gt; 1,
  </code></pre>
  
  <p>So, all my pages got a .html suffix, e.g. <a href="https://resterland.ch/webatelier.html" rel="nofollow noreferrer">https://resterland.ch/webatelier.html</a>.</p>
  
  <p>After upgrading to TYPO3 9.5 LTS with the new implemented Speaking URLs Out of the Box, all pages ending without any suffix by default, e.g. <a href="https://resterland.ch/webatelier" rel="nofollow noreferrer">https://resterland.ch/webatelier</a>.</p>
  
  <p>So far so good. However, if someone like to link to a bookmarked page with the .html suffix, they of course get an "Oops, an error occurred!".</p>
  
  <p>And in the Administration log ERRORs like this:</p>
  
  <pre><code>Exception handler (WEB): Uncaught TYPO3 Exception: #1544172838: Error handler could not fetch error page "https://resterland.ch/", reason: cURL error 7: Failed to connect to resterland.ch port 443: Connection refused (see http://curl.haxx.se/libcurl/c/libcurl-errors.html) | RuntimeException thrown in file /var/www/vhosts/resterland.ch/typo3_src-9.5.3/typo3/sysext/core/Classes/Error/PageErrorHandler/PageContentErrorHandler.php in line 77. Requested URL: https://resterland.ch/webatelier.html
  </code></pre>