Jump to content

Recommended Posts

Posted

I am currently able to do the following:

Redirect abc.happy.com to xyz.happy.com/abcdefg

This 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

Posted

url-transformation works www.rmindkob.yyyyyy.dk forward to rmwebshop.xxxx.dk

url 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 44236800

add cs action cs_act_rmindkob.yyyyyy.dk_443 -targetLBVserver Vip_rmindkob.yyyyyy.dk_443

add 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_443

add responder action redirekt_www.rmindkob redirect ""https://rmindkob.yyyyyy.dk"" -responseStatusCode 302

add responder policy redirect_www.rmindkob "HTTP.REQ.HOSTNAME.SET_TEXT_MODE(IGNORECASE).EQ("www.rmindkob.yyyyyy.dk")" redirekt_www.rmindkob

add transform profile tr_profile_rmindkob

add transform action tr_act_rmindkob2 tr_profile_rmindkob 110

add transform action tr_act_rmindkob tr_profile_rmindkob 100

set transform action tr_act_rmindkob2 -priority 110 -reqUrlFrom rmindkob.yyyyyy.dk -reqUrlInto rmwebshop.xxxx.dk -resUrlFrom rmwebshop.xxxx.dk -resUrlInto rmindkob.yyyyyy.dk

set 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.dk

add 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_rmindkob

bind lb vserver Vip_rmindkob.yyyyyy.dk_443 srv_rmindkob.yyyyyy.dk_443

bind lb vserver Vip_rmindkob.yyyyyy.dk_443 -policyName redirect_www.rmindkob -priority 100 -gotoPriorityExpression END -type REQUEST

bind lb vserver Vip_rmindkob.yyyyyy.dk_443 -policyName tr_pol_rmindkob -priority 100 -gotoPriorityExpression END -type REQUEST

bind cs vserver CS_https_server_z.z.z.z -policyName CS_pol_rmindkob.yyyyyy.dk_443_443 -priority 375 

  • 3 weeks later...

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...