Forum Discussion
Andrea_Arquint
Nimbostratus
Apr 15, 2010string substitution
Hi
I want to create an iRule which does the following:
when HTTP_REQUEST {
set host_orig [string tolower [HTTP::host]]
if { $host_orig contai...
hoolio
Cirrostratus
Apr 15, 2010How about this to send a permanent redirect to the requested host with the .gtm removed?
when HTTP_REQUEST {
if {[string tolower [HTTP::host]] contains ".gtm."}{
HTTP::respond 301 Location "[string map {gtm. ""} [HTTP::host]]"
}
}
Aaron
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