diff options
author | Evan Prodromou <evan@status.net> | 2010-01-31 10:12:26 -0500 |
---|---|---|
committer | Evan Prodromou <evan@status.net> | 2010-01-31 10:12:26 -0500 |
commit | dc62246443e3584ef5267505275f618f6fa86bf7 (patch) | |
tree | 850c1f89d9e1df589bfe3eed47ce3b790407dc2b /lib/router.php | |
parent | fec8066bf76948142828b689708386861d089fb3 (diff) |
Add a robots.txt URL to the site root
Adds a robots.txt file to the site root. Defaults defined by
'robotstxt' section of config. New events StartRobotsTxt and
EndRobotsTxt to let plugins add information. Probably not
useful if path is not /, but won't hurt anything, either.
Diffstat (limited to 'lib/router.php')
-rw-r--r-- | lib/router.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/router.php b/lib/router.php index ca9f32812..4b5b8d0bb 100644 --- a/lib/router.php +++ b/lib/router.php @@ -73,6 +73,8 @@ class Router if (Event::handle('StartInitializeRouter', array(&$m))) { + $m->connect('robots.txt', array('action' => 'robotstxt')); + $m->connect('opensearch/people', array('action' => 'opensearch', 'type' => 'people')); $m->connect('opensearch/notice', array('action' => 'opensearch', |