htaccess rule for favicon.ico in subdirectory
Posted on 2009-04-08
I'm looking for an htaccess rule for adding unique favicons to a subdirectory. I have many subdirectories on a primary domain name:
I would like each subdirectory (recursively) to have it's own favicon without editing the HTML.
www.domain.com/this1 // gets the favicon: /icons/this1.ico
www.domain.com/this2 // gets the favicon: /icons/this2.ico
www.domain.com/this3 // gets the favicon: /icons/this3.ico
www.domain.com/this4 // gets the favicon: /icons/this4.ico
I'm not good with htaccess rules, but I'm pretty sure this is possible. Thanks for any help!