GHOP: Support for favicon.ico, robots.txt, crossdomain.xml etc. in website root

c960657 - December 13, 2007 - 18:46
Project:Google Highly Open Participation Contest (GHOP)
Component:Task idea
Category:task
Priority:normal
Assigned:Unassigned
Status:active
Description

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.

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

webchick - December 16, 2007 - 16:16
Component:GHOP Task» Task idea

#2

lilou - December 16, 2007 - 17:01

Multisite support for robots.txt still exist :

http://drupal.org/project/robotstxt

 
 

Drupal is a registered trademark of Dries Buytaert.