diff --git a/web/stuff.go b/web/stuff.go index e5b2870..d4ffd4a 100644 --- a/web/stuff.go +++ b/web/stuff.go @@ -21,6 +21,9 @@ func initStuff() { http.HandleFunc("/update-header-links/", handlerUpdateHeaderLinks) http.HandleFunc("/random/", handlerRandom) http.HandleFunc("/about/", handlerAbout) + http.HandleFunc("/favicon.ico", func(w http.ResponseWriter, rq *http.Request) { + http.Redirect(w, rq, "/static/favicon.ico", http.StatusSeeOther) + }) } // handlerList shows a list of all hyphae in the wiki in random order. diff --git a/web/web.go b/web/web.go index d76c2a2..a3a5566 100644 --- a/web/web.go +++ b/web/web.go @@ -65,6 +65,7 @@ func handlerRobotsTxt(w http.ResponseWriter, rq *http.Request) { w.Write([]byte( `User-agent: * Allow: /page/ +Allow: /hypha/ Allow: /recent-changes Disallow: / Crawl-delay: 5`))