Salman Butt Posted August 23, 2023 Posted August 23, 2023 I am currently able to do the following:Redirect abc.happy.com to xyz.happy.com/abcdefgThis works great but i need to now perfom a redirect and continue to show the URL as abc.happy.com rather than the new url. Hiding the info from the user.Currently utilizing Reposonder policies and it works great. I beleive i need to use the rewrite functionality but am unsucessfull in doing so.Any assistance will greatly be appreciated
Marcelo Oguma de Souza Posted August 24, 2023 Posted August 24, 2023 Maybe it is better to use the URL transformation feature instead of just rewrite, it will also change the hyperlinks in the body, not just the header.https://docs.netscaler.com/en-us/citrix-adc/current-release/appexpert/rewrite/url-transformation.html
Fouad Rustom Posted August 24, 2023 Posted August 24, 2023 url-transformation works www.rmindkob.yyyyyy.dk forward to rmwebshop.xxxx.dkurl not changed in adresse add server srv_rmindkob.yyyyy.dk rmwebshop.xxxx.dk add service srv_rmindkob.yyyyyy.dk_443 srv_rmindkob.yyyyyy.dk SSL 443 -gslb NONE -maxClient 0 -maxReq 0 -cip DISABLED -usip NO -useproxyport YES -sp OFF -cltTimeout 180 -svrTimeout 360 -CKA NO -TCPB NO -CMP NO add lb vserver Vip_rmindkob.yyyyyy.dk_443 SSL 0.0.0.0 0 -persistenceType NONE -cltTimeout 180 -devno 44236800add cs action cs_act_rmindkob.yyyyyy.dk_443 -targetLBVserver Vip_rmindkob.yyyyyy.dk_443add cs policy CS_pol_rmindkob.yyyyyy.dk_443_443 -rule "HTTP.REQ.HOSTNAME.SET_TEXT_MODE(IGNORECASE).EQ("rmindkob.yyyyyy.dk")||HTTP.REQ.HOSTNAME.SET_TEXT_MODE(IGNORECASE).EQ("www.rmindkob.yyyyyy.dk")" -action cs_act_rmindkob.yyyyyy.dk_443add responder action redirekt_www.rmindkob redirect ""https://rmindkob.yyyyyy.dk"" -responseStatusCode 302add responder policy redirect_www.rmindkob "HTTP.REQ.HOSTNAME.SET_TEXT_MODE(IGNORECASE).EQ("www.rmindkob.yyyyyy.dk")" redirekt_www.rmindkobadd transform profile tr_profile_rmindkobadd transform action tr_act_rmindkob2 tr_profile_rmindkob 110add transform action tr_act_rmindkob tr_profile_rmindkob 100set transform action tr_act_rmindkob2 -priority 110 -reqUrlFrom rmindkob.yyyyyy.dk -reqUrlInto rmwebshop.xxxx.dk -resUrlFrom rmwebshop.xxxx.dk -resUrlInto rmindkob.yyyyyy.dkset transform action tr_act_rmindkob -priority 100 -reqUrlFrom www.rmindkob.yyyyyy.dk -reqUrlInto www.rmwebshop.xxxx.dk -resUrlFrom www.rmwebshop.xxxx.dk -resUrlInto www.rmindkob.yyyyyy.dkadd transform policy tr_pol_rmindkob "HTTP.REQ.HOSTNAME.SET_TEXT_MODE(IGNORECASE).EQ("www.rmindkob.yyyyyy.dk")||HTTP.REQ.HOSTNAME.SET_TEXT_MODE(IGNORECASE).EQ("rmindkob.yyyyyy.dk")" tr_profile_rmindkobbind lb vserver Vip_rmindkob.yyyyyy.dk_443 srv_rmindkob.yyyyyy.dk_443bind lb vserver Vip_rmindkob.yyyyyy.dk_443 -policyName redirect_www.rmindkob -priority 100 -gotoPriorityExpression END -type REQUESTbind lb vserver Vip_rmindkob.yyyyyy.dk_443 -policyName tr_pol_rmindkob -priority 100 -gotoPriorityExpression END -type REQUESTbind cs vserver CS_https_server_z.z.z.z -policyName CS_pol_rmindkob.yyyyyy.dk_443_443 -priority 375
Rick Davis Posted September 11, 2023 Posted September 11, 2023 add transform profile demo_abc.happy.com_profileadd transform action abc.happy.com demo_abc.happy.com_profile 100set transform action abc.happy.com -priority 100 -reqUrlFrom "https://abc.happy.com/(.*)" -reqUrlInto "https://xyz.happy.com/abcdefg/$1" -resUrlFrom "https://xyz.happy.com/abcdefg/(.*)" -resUrlInto "https://abc.happy.com/$1"
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now