Answers.Body: <p>I pondered this for a while, and then did this, which will direct us to specific entries (not templates, I don't want to create more of those):</p>
  
  <pre><code>{# We need a unique 404 for each site - just take us to the 
     right slug relative to current URL #}
  
  {% switch currentSite.id %}
  
  {# siteA.com #}
  {% case 1 %}
  
      {% redirect '/my-404-slug' %}
  
  {# siteB.com #}
  {% case 2 %}
  
      {% redirect '/my-other-404-slug' %}
  
  {% endswitch %}
  </code></pre>
  
  <p>If you want to use templates instead of entries, just use an <strong>{% include %}</strong> statement instead of <strong>{% redirect %}</strong>.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-12-04T02:01:38.903Z
Answers.Text: If you're happy with your solution don't forget to accept your answer.
Answers.UserDisplayName: neekster
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-12-03T01:27:12.107Z
Answers.LastActivityDate: 2019-12-03T01:27:12.107Z
Answers.UserDisplayName: 4midori
Body: <p>Craft looks for <em>/templates/404</em> by default. What do you do if you have multiple sites?</p>
  
Tags: <multi-site><routing><404><multi-domain><404-page>
Title: How to route 404 errors for multi-site Craft?
ThreadText: # How to route 404 errors for multi-site Craft?
  
  (Asked by: username_0 on 2019-12-03)
  
  Craft looks for */templates/404* by default. What do you do if you have multiple sites?
  
  **Tags:** multi-site, routing, 404, multi-domain, 404-page
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_0 on 2019-12-03. Score: 4 | Accepted answer
  
  I pondered this for a while, and then did this, which will direct us to specific entries (not templates, I don't want to create more of those):
  
  ```
  {# We need a unique 404 for each site - just take us to the 
     right slug relative to current URL #}
  
  {% switch currentSite.id %}
  
  {# siteA.com #}
  {% case 1 %}
  
      {% redirect '/my-404-slug' %}
  
  {# siteB.com #}
  {% case 2 %}
  
      {% redirect '/my-other-404-slug' %}
  
  {% endswitch %}
  
  ```
  
  If you want to use templates instead of entries, just use an **{% include %}** statement instead of **{% redirect %}**.
  
  > **Comments:**
  > **username_1**: If you're happy with your solution don't forget to accept your answer.  
  
  ---
  
  