Author Topic: HOW TO: Rewrite absolute URLs in HTML bodies using URL-transform module  (Read 1850 times)

Offline isergeev1

  • Contributor
  • *
  • Posts: 1
  • Karma: 1
HI All!
We can use URL-rewrite to change absolute URL's according our need, so as we can do the same things with URL-transform profile. It's not hard as not well documented (I mean using CLI documentation):
add transform profile url_transform1
set transform profile url_transform1 -onlyTransformAbsURLinBody ON
add transform action act_url_transform1 10
set transform action act_url_transform1 -priority 10 -resUrlFrom "http://urlwewanttochange.com/(.*)" -resUrlInto "http://urlwewanttobe.com/$1"
add transform policy pol_url_transform1 TRUE url_transform1
bind transform global pol_url_transform1 10
-----------------
The example above is for 9.1 version of Netscaler sofware only.

Offline jmelika

  • Administrator
  • Hero Member
  • *****
  • Posts: 339
  • Karma: 7
Excellent article.  I'll be sure to give it a try.  Thanks for posting it.