Answers.Body: <p>I don't think you can open a .ico file with the browser directly, that's why the request 404s.</p>
  
  <p>There's two ways to make it do its thing:</p>
  
  <ul>
  <li><p>simply place it in the web root, e.g. public/favicon.ico</p></li>
  <li><p>use this link tag in your document head: <code>&lt;link rel="icon" href="{{ url('dist/img/favicon.ico') }}" type="image/x-icon"&gt;</code></p></li>
  </ul>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-08-26T22:00:33.083Z
Answers.LastActivityDate: 2015-08-26T22:00:33.083Z
Answers.UserDisplayName: carlcs
Body: <p>This is my first Craft site, I inherited it. I've manually set a link tag to my favicon in my templates/_layouts/_header.twig file:</p>
  
  <p></p>
  
  <p>Everything else in that /dist/img folder renders fine - .png, .jpg, .gif. Everything inside the other /dist subdirs renders fine - /css, /js, /pdf... What am I missing? Going directly to the favicon.ico url, I get a blank page with this:</p>
  
  <p>"Unable to find the template â€œ_layoutâ€."</p>
  
  <p>I do not understand the routing - but that feels like a red herring here anyway. I don't have any routes set up in the cms, and everything else in the /dist directory renders fine when I link directly to it. Thanks for any ideas.</p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-08-26T03:35:42.283Z
Comments.Text: can you share an example of a working link and the non working one so we can play spot the difference
Comments.UserDisplayName: j00lz
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-08-26T13:20:14.880Z
Comments.Text: Yes, thanks:http://hopscotchdesignfest.com/dist/img/r4u.png (working) | http://hopscotchdesignfest.com/dist/img/favicon.ico (no dice)
Comments.UserDisplayName: Will Langley
Tags: <error-message><404>
Title: favicon.ico throwing 404 TemplateLoader exception
ThreadText: # favicon.ico throwing 404 TemplateLoader exception
  
  (Asked by: username_0 on 2015-08-26)
  
  This is my first Craft site, I inherited it. I've manually set a link tag to my favicon in my templates/\_layouts/\_header.twig file:
  
  Everything else in that /dist/img folder renders fine - .png, .jpg, .gif. Everything inside the other /dist subdirs renders fine - /css, /js, /pdf... What am I missing? Going directly to the favicon.ico url, I get a blank page with this:
  
  "Unable to find the template â€œ\_layoutâ€."
  
  I do not understand the routing - but that feels like a red herring here anyway. I don't have any routes set up in the cms, and everything else in the /dist directory renders fine when I link directly to it. Thanks for any ideas.
  
  **Tags:** error-message, 404
  
  > **Comments:**
  > **username_1**: can you share an example of a working link and the non working one so we can play spot the difference  
  > **username_0**: Yes, thanks:http://hopscotchdesignfest.com/dist/img/r4u.png (working) | http://hopscotchdesignfest.com/dist/img/favicon.ico (no dice)  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_2 on 2015-08-26. Score: 2
  
  I don't think you can open a .ico file with the browser directly, that's why the request 404s.
  
  There's two ways to make it do its thing:
  
  * simply place it in the web root, e.g. public/favicon.ico
  * use this link tag in your document head: `<link rel="icon" href="{{ url('dist/img/favicon.ico') }}" type="image/x-icon">`
  
  
  ---
  
  