what about if you are on a multi site install, where would you put the favicon to have it automaticallly recognized by the browser (and no blot the code with link tag)cause there is no real root per se?
Thank you in advance for your help on this
what about if you are on a multi site install, where would you put the favicon to have it automaticallly recognized by the browser (and no blot the code with link tag)cause there is no real root per se?
Thank you in advance for your help on this
You must be logged in to post a comment.
I would use a rewrite to map requests for
/favicon.ico
to/icons/example.com.ico
:Note the regex for line #2 depends on your set-up – is each website its own domain, or a subdomain/subdirectory of a primary domain?
I would also place a default favicon in the root, which will get pulled if no favicon exists in
/icons
for the current site.Another approach is to print the links in the
<head>
.The only caveat is that the following is not working in Sub-directory installs, only in Sub-domain.
Somehow
get_current_blog_id
is only returns the ID1
in whendefine('SUBDOMAIN_INSTALL', false);
.Interesting blog post: Everything You Ever Wanted to Know about Favicons