Author Topic: url transformation issues  (Read 726 times)

Offline metatron

  • Contributor
  • *
  • Posts: 1
  • Karma: 0
url transformation issues
« on: October 25, 2011, 04:46:38 AM »
hi

i cant seem to get the url transformation to do what i want, in fact it doesnt even register as a hit when i try and use the policy i created
im using apache so want to change any uppercase letters in the word "login" to lower
HTTP.REQ.URL.SET_TEXT_MODE(IGNORECASE).CONTAINS("LOGIN") is my policy
and in the profile i have request URL from (?i)/LOGIN into /login

what have i done wrong? im baffled

Offline evildani

  • Administrator
  • Hero Member
  • *****
  • Posts: 389
  • Karma: 22
Re: url transformation issues
« Reply #1 on: October 26, 2011, 03:09:58 AM »
You mean in the URL or in the QUERY?

If it is in the URL, would a redirect be more appropriate?

Offline mkalle

  • VIP Member
  • ***
  • Posts: 25
  • Karma: 1
Re: url transformation issues
« Reply #2 on: October 26, 2011, 05:15:33 AM »
do you want to rewrite the URL, or respond back to the client, with a "location: host.com/login" instead of host.com/LOGIN.
ethier way, its pretty straight forward.

If you use caching, it will properly store two objects if you dont use the responder policy. not sure though. - a cache selector change this behavior.

Offline cript2000

  • Contributor
  • *
  • Posts: 8
  • Karma: 0
Re: url transformation issues
« Reply #3 on: October 26, 2011, 06:32:35 AM »
Seems pretty simple. If he sees the string login, he wants to rewrite the URI between NetScaler and Server to be lower case.