Answers.Body: <p>You could always use a meta refresh</p>
  
  <pre><code>&lt;meta http-equiv="refresh" content="5; url=http://example.com/"&gt;
  </code></pre>
  
  <p>With the number being the amount of time in seconds until the redirect</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2014-12-13T00:03:33.340Z
Answers.Text: damn off course!
Answers.UserDisplayName: Johannes Lamers
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-11-24T15:34:46.533Z
Answers.Text: pay attention that the tag is broken: it should be content="5;url='whatever'"
Answers.UserDisplayName: Masiorama
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-11-24T15:38:55.277Z
Answers.Text: good catch, feel free to edit answers when you see these errors :)
Answers.UserDisplayName: Alec Ritson
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2014-12-13T00:00:27.687Z
Answers.LastActivityDate: 2015-11-24T15:38:34.900Z
Answers.LastEditDate: 2015-11-24T15:38:34.900Z
Answers.UserDisplayName: Alec Ritson
Body: <p>Is it possible to set up a 404 page, and after x amount of time redirecting to the homepage?</p>
  
  <pre><code>{% extends "_layout/_layout" %}
  
  
  {% set metaTitle = "404" %}
  
  
  {% set bodyId           = "404" %}
  {% set bodyClass        = "404" %}
  
  {% block content %}
      &lt;section class="container"&gt;
          &lt;h1&gt;Page not found&lt;/h1&gt;
  
          &lt;p&gt;What’s worse, a hilarious 404 page can’t be found either.&lt;/p&gt;
      &lt;/section&gt;
  
  
      &lt;!--404 Tracking Google--&gt;
  &lt;script type="text/javascript"&gt;// &lt;![CDATA[
      if (document.title.search(/404/i) !== -1) {
      _gaq.push(['_trackEvent', 'Error', '404', 'page: ' + document.location.pathname + document.location.search + ' ref: ' + document.referrer,,true]);
       }; 
      // ]]&gt;
  
  &lt;/script&gt;
  {% endblock %}
  </code></pre>
  
Tags: <redirect><404><error>
Title: 404 page redirect to homepage
ThreadText: # 404 page redirect to homepage
  
  (Asked by: username_0 on 2014-12-12)
  
  Is it possible to set up a 404 page, and after x amount of time redirecting to the homepage?
  
  ```
  {% extends "_layout/_layout" %}
  
  {% set metaTitle = "404" %}
  
  {% set bodyId           = "404" %}
  {% set bodyClass        = "404" %}
  
  {% block content %}
      <section class="container">
          <h1>Page not found</h1>
  
          <p>What’s worse, a hilarious 404 page can’t be found either.</p>
      </section>
  
      <!--404 Tracking Google-->
  <script type="text/javascript">// <![CDATA[
      if (document.title.search(/404/i) !== -1) {
      _gaq.push(['_trackEvent', 'Error', '404', 'page: ' + document.location.pathname + document.location.search + ' ref: ' + document.referrer,,true]);
       }; 
      // ]]>
  
  </script>
  {% endblock %}
  
  ```
  
  **Tags:** redirect, 404, error
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2014-12-13. Score: 2 | Accepted answer
  
  You could always use a meta refresh
  
  ```
  <meta http-equiv="refresh" content="5; url=http://example.com/">
  
  ```
  
  With the number being the amount of time in seconds until the redirect
  
  > **Comments:**
  > **username_0**: damn off course!  
  > **username_2**: pay attention that the tag is broken: it should be content="5;url='whatever'"  
  > **username_1**: good catch, feel free to edit answers when you see these errors :)  
  
  ---
  
  