The path module currently allows aliases to virtual paths, such as node/3 or user/1/contact, but not to actual files, such as e.g. sites/all/themes/tealtoes/images/teal-foot.ico. It would be useful to allow aliases to files. Consider the following use case:
I have a multi-site installation. Each site has a separate shortcut icon specified in its theme. The shortcut icon shows up in each page in a <link rel="shortcut icon"> tag. However, traditionally shortcut icons were accessed as /favicon.ico. In order to support old broken clients that still expect that (and reduce the number of 404 errors in my logs), I want /favicon.ico to work as an alias to each site's shortcut icon. I could create a symlink or regular image file in the document root, but only for one icon, whereas each of my sites has a different shortcut icon.
A logical fix for this would be to create a path alias in each database, to make favicon.ico point to that site's shortcut icon file. Alas, the path module won't let me do that. Even when I insert a record with src=sites/all/themes/tealtoes/images/teal-foot.ico and dst=favicon.ico into the url_alias table, it still doesn't work-- the site reports "page not found" for /favicon.ico.
Thanks,
Andrew.