Forum Discussion
Jeff_Nguyen_449
Nimbostratus
Mar 21, 2014inline irule redirect
i'm trying to do a irule redirect from one host header to another. User is moving site content from one site to another. But i want to make it inline so that, any folder/file within that path is re...
Cory_50405
Noctilucent
Mar 21, 2014I see what you mean. Try this:
when HTTP_REQUEST {
if { [string tolower [HTTP::host]] equals "abc.com" and [string tolower [HTTP::uri]] starts_with "/sites/pocc/bm/bmd"} {
HTTP::redirect "https://xyz.com[HTTP::uri]" }
}
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