Forum Discussion
Andrea_Arquint
Nimbostratus
Oct 21, 2010How to replace the hostname from a FQDN in HTTP:HOST
Hi How is it possible to replace only the hostname within an irule? Example: Client requests www.trustme.com so [HTTP:Host] contains this name. How can I repl...
Chris_Miller
Altostratus
Oct 21, 2010
when HTTP_REQUEST {
if { [string tolower [HTTP::host]] eq "www.trustme.com" } {
HTTP::redirect "http://www2.trustme.com[HTTP::uri]" } }
That'll send a redirect to the client for www2.
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
