Jump to content
Welcome to our new Citrix community!

Need to rewrite the URL


Recommended Posts

You can use responder in both scenario

 

add responder action Redirect_Name redirect "\"encore-stg.emirates.com/XY23564:8280/encore/master/Welcome.jsf\"" -responseStatusCode 302


add responder policy POL_Redirect "HTTP.REQ.HOSTNAME.CONTAINS(\"encore-stg.emirates.com\")" Redirect_Name

 

bind lb vserver Redirct-Corp_LB -policyName POL_Redirect -priority 100 -gotoPriorityExpression END -type REQUEST

 

Thanks 

Manoj

 

Link to comment
Share on other sites

I would predfer a rewrite policy, as this is transparent to users.

 

add rewrite action rw_act_send2home HTTP.REQ.URL "/XY23564:8280/encore/master/Welcome.jsf"

(this will replace the URL. A URL in ADC never contains host-name or protocol)

 

add rewrite policy rw_pol_send2home "HTTP.REQ.URL.EQ("/") res_act_send2home

(and we will do this only if the URL is empty ("/"), so that's a request for the host name only)

 

Cheers

 

Johannes Norz, Austria

CTA, CCI, CCE-N

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...