cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
573
Views
0
Helpful
2
Replies

Redirection problem involving both header and path

hfeldinger
Level 1
Level 1

I'm having problems with a redirection that is involving the path, as it is the path that is changing.

As the developers are a little lazy the dont want to rewrite the the old path when moving to the new platform.

So I have to redirect http://vital/en/* to http://vital/*, so it comes to removing part of the path (/en) and keeping the rest.

Ex.

http://vital/en/system/IT redirected to http://vital/system/IT

pls do some magic

regards

hfeldinger

2 Replies 2

chrhiggi
Level 3
Level 3

rserver redirect EnRemoval

  webhost-redirection http://vital/%p

  inservice

serverfarm redirect EnRemoval

  rserver EnRemoval

    inservice

class-map match-any Vip_80

  2 match virtual-address 172.16.36.13 tcp eq www

class-map type http loadbalance match-any EnRedirectClass

  2 match http url /en/.*

policy-map type loadbalance first-match Policy_80

  class EnRedirectClass

    serverfarm EnRemoval

  class class-default

    serverfarm Servers (farm to handle all the traffic once it was redirected)

policy-map multi-match Vips

  class Vip_80

    loadbalance vip inservice

    loadbalance policy Policy_80

Regards,

Chris Higgins

  I will try, but I cant see how it is going to make /en go away and then pass on the rest.

Regards