Answers.Body: <p>I don't know exactly why. But I did the Redactor updates in Craft, uploaded the new vendor folder to the hosting provider and now it works.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-02-16T09:16:16.440Z
Answers.LastActivityDate: 2021-02-16T09:16:16.440Z
Answers.UserDisplayName: ChuckLean
Body: <p>For my multi-lingual-Page (de + en) I've made a 404.html-File in my templates-Folder with a language-changer for html-content-output like</p>
  <pre><code>{% if craft.app.language == 'de-CH' %}&lt;p&gt;Hallo&lt;/p&gt; {% else %} &lt;p&gt;Hello&lt;/p&gt; {% endif %} 
  </code></pre>
  <p>When I open the 404-pages local (localhost/404 and localhost/en/404) it works. Also when I open them in live with direct url (<a href="http://www.example.ch/404" rel="nofollow noreferrer">www.example.ch/404</a> and <a href="http://www.example.ch/en/404" rel="nofollow noreferrer">www.example.ch/en/404</a>) everything works fine.</p>
  <p>But when I will open a wrong URL like &quot;www.example.ch/tesxt&quot; (correct URL: <a href="http://www.example.ch/test" rel="nofollow noreferrer">www.example.ch/test</a>) I get a <strong>HTTP 404 – Not Found – yii\web\NotFoundHttpException Template not found: tesxt</strong></p>
  <p>Settings:</p>
  <ul>
  <li>I only have one index.php</li>
  <li>I only have one 404.html</li>
  <li>in general.php: <strong>'devMode' =&gt; false,</strong></li>
  <li>the 404.html is directly in templates-Folder (src&gt;templates&gt;404.html)</li>
  <li>installed Plugins: DigitalOcean Spaces Volume, Freeform, Redactor (I think these will not disturb the 404 page)</li>
  <li>Craft Version: 3.5.17</li>
  <li>PHP-Version: 7.3.17</li>
  </ul>
  
Tags: <localization><404><404-page>
Title: 404 Page for Multi-lingual Page
ThreadText: # 404 Page for Multi-lingual Page
  
  (Asked by: username_0 on 2021-01-27)
  
  For my multi-lingual-Page (de + en) I've made a 404.html-File in my templates-Folder with a language-changer for html-content-output like
  
  ```
  {% if craft.app.language == 'de-CH' %}<p>Hallo</p> {% else %} <p>Hello</p> {% endif %} 
  
  ```
  
  When I open the 404-pages local (localhost/404 and localhost/en/404) it works. Also when I open them in live with direct url ([www.example.ch/404](http://www.example.ch/404) and [www.example.ch/en/404](http://www.example.ch/en/404)) everything works fine.
  
  But when I will open a wrong URL like "www.example.ch/tesxt" (correct URL: [www.example.ch/test](http://www.example.ch/test)) I get a **HTTP 404 – Not Found – yii\web\NotFoundHttpException Template not found: tesxt**
  
  Settings:
  
  * I only have one index.php
  * I only have one 404.html
  * in general.php: **'devMode' => false,**
  * the 404.html is directly in templates-Folder (src>templates>404.html)
  * installed Plugins: DigitalOcean Spaces Volume, Freeform, Redactor (I think these will not disturb the 404 page)
  * Craft Version: 3.5.17
  * PHP-Version: 7.3.17
  
  **Tags:** localization, 404, 404-page
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_0 on 2021-02-16. Score: 0 | Accepted answer
  
  I don't know exactly why. But I did the Redactor updates in Craft, uploaded the new vendor folder to the hosting provider and now it works.
  
  
  ---
  
  