Package whredir provides some helper methods and handlers for redirecting incoming requests to other URLs.
FullURL returns the full url from the incoming request, regardless of what current whmux.Dir is involved or how req.URL.Path has been edited.
Redirect is just http.Redirect with http.StatusSeeOther which I always forget.
RedirectHandler returns an http.Handler that redirects all requests to url.
RequireHTTPS returns a handler that will redirect to the same path but using https if https was not already used.
RequireHost returns a handler that will redirect to the same path but using the given host if the given host was not specifically requested.
RequireTrailingSlash makes sure all handled paths have a trailing slash. This helps with relative URLs for other resources.
RedirectHandlerFunc is an http.Handler that redirects all requests to the returned URL.
Routes implements whroute.Lister
ServeHTTP implements http.handler