Forum Discussion
FRUCHTiii_33338
Nimbostratus
Oct 05, 2017Redirect URL with dynamic URI
Hello all,
i need some support by a redirect.
The problem is the following:
I want to redirect the URL with URI Path
https://www.myurl.com/mypath
to
https://www.anotherurl.co...
Jad_Tabbara__J1
Cirrostratus
Oct 05, 2017Hello,
I don't think it is possible to do it by policy (I don't know if you can store variables with LTM policies)
But using an iRule you can do it for sure, try this :
when HTTP_REQUEST {
if { [string tolower [HTTP::host]] eq "www.myurl.com" } {
HTTP::redirect https://www.anotherurl.com[HTTP::uri]
}
}
Please try it and give us a feedback
Regards
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* 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
Discover DevCentral Connects
