Configure URL transformation to rewrite and proxy requests

By | August 5, 2020

CLI Reference;

  • add transform profile proxy_rewrite
  • add transform action rewrite1 proxy_rewrite 10
  • set transform action rewrite1 -priority 10 -reqUrlFrom “http://www.company.com/key/(.*)” -reqUrlInto “http://www.external.com/$1” -resUrlFrom “http://www.external.com/(.*)” -resUrlInto http://www.example.com/key/$1
  • add transform policy rewrite_pol “HTTP.REQ.URL.PATH.GET(1).EQ(\”key\”) && http.REQ.HOSTNAME.EQ(\”www.example.com\”)” proxy_rewrite
  • bind transform global rewrite_pol 100

Leave a Reply

Your email address will not be published. Required fields are marked *