Forum Discussion
Woody_
Nimbostratus
Apr 24, 2017Preserve URL prefix during redirect
We're migrating our client URLs to a new domain. We have one VS for all clients as they're directed to their content at the server level.
Here's what needs to be done:
the VIP and DNS name...
Hectorm
Nimbostratus
Apr 24, 2017So for this all you need to do is used the string trim command. Something like this when HTTP_REQUEST {
set Vhost [ string tolower [HTTP::host]] set Vclient [string trim [HTTP::host] ".prod.stiniflap.com"] set NewHost ".pro.imformation.com"
HTTP::redirect "https://$Vclient$NewHost[HTTP::uri]"
}
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