Forum Discussion

_maxmau5__37763's avatar
_maxmau5__37763
Icon for Altostratus rankAltostratus
Nov 23, 2018

URL redirect policy with wildcard

I realize there are straightforward ways to do this with an iRule, but trying to do this with a simple LTM policy.

 

what we want is:

 

group1.domain.com/directory1 redirects to cloud1.domain.com/directory1

 

however I have unknown/infinite directory options, so this needs to be a wildcard

 

I see how to simply make group1.domain.com redirect to cloud1.domain.com, but I need it to be group1.domain.com/*, and carry that directory over.

 

Anyway to not irule this one? :)

 

1 Reply

  • I know this is an old post, but in case anyone out there is wondering how to get this working with a Local Traffic Policy...

     

    You put the old hostname as the condition, then put the following as the "to location" - tcl:https://new.com[HTTP::uri]

     

    Obviously you'd replace old.com and new.com with whatever hostnames you're actually using, but this way the hostname will get rewritten and the URI will stay the same.