Availability:
:- use_module(library(http/http_dispatch)).
[det]http_redirect(+How,
+To, +Request)
:- http_handler(root(.),
http_redirect(moved, myapp('index.html')),
[]).
| How | is one of moved, moved_temporary
or see_other |
| To | is an atom, a aliased path as defined by
http_absolute_location/3.
or a term location_by_id(Id) or its abbreviations #(Id)
or #(Id)+Parameters. If To is not absolute, it
is resolved relative to the current location. |