@jmd01/lws-rewrite
v3.1.1
Published
Forked in order to inject cache headers. lws middleware plugin adding URL rewriting support
Downloads
649
Maintainers
Readme
Fork of lws-rewrite
Inserts cache headers into the response
lws-rewrite
lws middleware plugin adding URL rewriting support. For usage instructions see here.
Adds the following options to lws.
--rewrite, -r expression ... A list of URL rewrite rules. For each rule, separate the 'from' and 'to'
routes with '->'. Whitespace surrounded the routes is ignored. E.g. '/from ->
/to'.
© 2016-20 Lloyd Brookes <[email protected]>.