How do you redirect all demands for favicon.ico in root directory or any subdirectory to /images/favicon.ico

Do this rule:

RewriteEngine on
RewriteRule ^favicon\.ico$ /images/favicon.ico [L]

Edit    And for favicon.ico with arbitrary path segment depth:

RewriteCond $0 !=images/favicon.ico
RewriteRule ^([^/]+/)*favicon\.ico$ /images/favicon.ico [L]

ModRewrite On

RewriteRule ^(.*)favicon.ico /images/favicon.ico

This quick rewrite should have the desired effect:

RewriteRule ^(.*)favicon.ico /images/favicon.ico

I understand now you ask , labeled .htaccessbut, why don't you make use of a symlink?

ln -s images/favicon.ico favicon.ico