// RedirectHomeHandler redirects everyone home ("/") with a 301 redirect.
RedirectHomeHandler redirects everyone home ("/") with a 301 redirect.
// RedirectHomeHandler redirects everyone home ( " / " ) with a 301 redirect .
func RedirectHomeHandler(rw http.ResponseWriter, r *http.Request) {
	p := bluemonday.UGCPolicy()
	domain := getDomain(r)
	sanit := p.Sanitize(r.URL.Path[1:])
	log.Printf("RDR: %s /%s %s - %s - %s", domain, sanit, r.RemoteAddr, r.Host, r.UserAgent())
	http.Redirect(rw, r, "/", 301)
}
func RedirectHomeHandler ( rw http . ResponseWriter , r * http . Request ) { p := bluemonday . UGCPolicy ( ) domain := getDomain ( r ) sanit := p . Sanitize ( r . URL . Path [ 1 : ] ) log . Printf ( " " , domain , sanit , r . RemoteAddr , r . Host , r . UserAgent ( ) ) http . Redirect ( rw , r , " " , 301 ) }
RedirectHomeHandler redirects everyone home ("/") with a 301 redirect.
RedirectHomeHandler redirects everyone home ( " / " ) with a 301 redirect .