GHOP: Support for favicon.ico, robots.txt, crossdomain.xml etc. in website root
| Project: | Google Highly Open Participation Contest (GHOP) |
| Component: | Task idea |
| Category: | task |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Support for favicon.ico, robots.txt, crossdomain.xml etc. in website root
Background
Certain browsers, web spiders expect some files to reside in the server root directory. This includes favicon.ico, robots.txt and crossdomain.xml.
- http://en.wikipedia.org/wiki/Favicon.ico
- http://en.wikipedia.org/wiki/Robots.txt
- http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_14213
When using a single Drupal installation for multiple sites, all sites share the same root directory and thus cannot have individual content for these files.
Implementation
If crossdomain.xml exists in drupal/sites/example.com, http://example.com/crossdomain.xml should map to this file.
Likewise, if robots.txt exists in drupal/sites/example.com, http://example.com/crossdomain.xml should map to this file rather than the default file in drupal/.
http://example.com/favicon.ico should map to whatever icon is used by the site's default theme. This is either the icon uploaded by the site administrator in Site building > Themes > Configure, or the theme's
default icon. This icon also appears in a <link rel="shortcut icon" href="..."> element in the <head> section of the page. However, certain older browsers do not support this but always request
http://example.com/favicon.ico. This gives unnecessary 404 hits in the event log.
The deliverable for this task is a patch against Drupal HEAD with changes to PHP code and/or the .htaccess file.

#1
#2
Multisite support for robots.txt still exist :
http://drupal.org/project/robotstxt