Changeset 293


Ignore:
Timestamp:
Apr 22, 2007, 12:18:07 AM (15 years ago)
Author:
geofft
Message:
This should allow robots.txt with HTTP/1.0. [help.mit.edu #415683]
File:
1 edited

Legend:

Unmodified
Added
Removed
  • vhosts/server.php

    r245 r293  
    44if (isset($_SERVER['PATH_INFO'])) $pi = explode('/',$_SERVER['PATH_INFO']);
    55if (isset($_SERVER['SERVER_PORT'])) $port = $_SERVER['SERVER_PORT']; else $port = '80';
     6
     7if ($req == '/robots.txt') {
     8        header('Content-Type: text/plain');
     9        fpassthru('/afs/athena.mit.edu/contrib/scripts/web_scripts/robots.txt');
     10        exit;
     11}
    612
    713if (array_shift(explode('.',$name)) == 'www') {
Note: See TracChangeset for help on using the changeset viewer.