diff --git a/README.md b/README.md index d3c59bd..23922ca 100644 --- a/README.md +++ b/README.md @@ -35,7 +35,68 @@ http://mysite.org,https://yoursite.net/referral/mysite,301 ### Example output of config mode ```txt -http://myoldsite.com/boomer,https://mynewsite.io/zoomer,301 -https://myoldblog.net/blog/post/1,https://mynewblog.ru/cykablyat,302 -http://mysite.org,https://yoursite.net/referral/mysite,301 +------------------------ + + +config waf url-rewrite url-rewrite-rule +edit "http://myoldsite.com/boomer" +set location https://mynewsite.io/zoomer +set action redirect-301 +config match-condition +edit 0 +set object http-url +set reg-exp /boomer$ +set protocol-filter enable +set HTTP-protocol http +next +end +next +edit "https://myoldblog.net/blog/post/1" +set location https://mynewblog.ru/cykablyat +set action redirect +config match-condition +edit 0 +set object http-url +set reg-exp /blog/post/1$ +set protocol-filter enable +set HTTP-protocol https +next +end +next +edit "http://mysite.org" +set location https://yoursite.net/referral/mysite +set action redirect-301 +config match-condition +edit 0 +set object http-url +set reg-exp $ +set protocol-filter enable +set HTTP-protocol http +next +end +next +end +config waf url-rewrite url-rewrite-policy +edit "myoldsite.com-redirects" +config rule +edit 0 +set url-rewrite-rule-name http://myoldsite.com/boomer +next +end +next +edit "myoldblog.net-redirects" +config rule +edit 0 +set url-rewrite-rule-name https://myoldblog.net/blog/post/1 +next +end +next +edit "mysite.org-redirects" +config rule +edit 0 +set url-rewrite-rule-name http://mysite.org +next +end +next +end ``` \ No newline at end of file