(use-modules (haunt builder redirects))
The redirects builder creates pages that trigger browser redirects to another URL. This allows for easily specifying redirects as part of a Haunt site configuration and without the need for modifying the configuration of the production web server that is hosting the site.
Return a procedure that transforms a list of redirect tuples in
specs, with the form (from to)
, into a list of pages that
trigger a browser-initiated redirect.
from
values must be local page file names, not URLs, but
to values may be either local page file names or full URLs to
other websites.
(redirects '(("/about.html" "/about/me.html") ; local ("/guile.html" "https://gnu.org/software/guile"))) ; remote