Forums / Setup & design / How to add a favicon.ico to EZ Publish site?
Eivind Marienborg
Thursday 29 July 2004 8:55:18 am
I've tried placing a favicon.ico in the root (www.mysite.com/favicon.ico), but EZ doesn't allow the browser to read this, and gives a Kernel-error.
How can I then add a favion to my EZ-site?
Paul Forsyth
Thursday 29 July 2004 9:13:07 am
Try something like this:
<head> <link href={"favicon.ico"|ezimage} rel="Favourite icon" /> </head>
where 'favicon.ico' is located in design/<your-site>/images.
paul --http://www.visionwt.com
Thursday 29 July 2004 9:23:16 am
Adding
<link REL="icon" HREF={"icon.png"|ezimage} TYPE="image/png">
worked like a charm. Thanks lots! :D
Tony Wood
Thursday 29 July 2004 9:41:50 am
You could still keep the 'ico' file by adding ico to the rewrite ignore list.Your rewrite rule would look something like this in eZ 3.4
RewriteRule !\.(gif|jpe?g|png|css|ico|js|jar|html)|var(.+)storage.pdf(.+)\.pdf$ /my/path/index.php
This might be preferable as I am not sure if all browsers support 'png' as favicons.
--tonyhttp://www.visionwt.com
Tony Wood : twitter.com/tonywood Vision with Technology Experts in eZ Publish consulting & development Power to the Editor! Free eZ Training : http://www.VisionWT.com/training eZ Future Podcast : http://www.VisionWT.com/eZ-Future
Thursday 29 July 2004 9:49:55 am
I've grep'ed through the entire site, but can't find one single RewriteRule.. Where should it be located?
Thursday 29 July 2004 10:01:59 am
This setup will be in your apache config. So you might want to ask your hoster to show you the apache conf for your site and add this too it.
I am not sure how you are hosting so I cannot give any specific details sorry.
--tony