WraithWeb.Redirects (Wraith v0.1.0)

View Source

Site redirects from Settings (redirects: [%{"from", "to", "permanent"}]). from is an exact path or a prefix ending in * (/old/* → /new/* keeps the rest). Runs before the router; a match answers 301/302.

Summary

Functions

Parse the settings textarea: one from to [permanent|temporary] per line.

Functions

parse(text)

Parse the settings textarea: one from to [permanent|temporary] per line.

to_text(rules)