Plug_URL_Redirector v0.1.0 PlugUrlRedirector.Dynamic

Dynamic URL redirector.

Summary

Functions

This module Plug redirects the given path at conn.request_path to the given content of :external prepended. The redirection return code is 301 (Moved Permanently)

Functions

call(conn, external)

This module Plug redirects the given path at conn.request_path to the given content of :external prepended. The redirection return code is 301 (Moved Permanently).

Example: for conn.request_path of /test/test2.html', if:externalis set tohttp://test.example.com, the request is redirected tohttp://test.example.com/test/test2.html`.

init(opts)