Forum Discussion
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? :)
- DanS92
Cirrus
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.
Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com