Forum Discussion
dyobbs_25515
Feb 03, 2012Nimbostratus
iRule to redirect a variable to http
Guys hi,
I'm newbie here. I wanted to create an iRule, that truncates the later part of the message from the "http://.acme.com" to http://
any help is appreciated.
Will t...
dyobbs_25515
Feb 14, 2012Nimbostratus
Nitass hi,
Given the irule:
rule myrule {
when HTTP_REQUEST {
set host [string tolower [HTTP::host]]
set newhost [string map {".acme.com.nz" ""} $host]
if {$host ne $newhost} {
HTTP::redirect "http://$newhost[HTTP::uri]"
}
}
using httpwatch, there's a response header that says HTTP/1.0 302 found
Location: http://
Can this maintain persistent session? Any traffic that goes into this iRule should have persistent session on the cache servers.
What can we put in?
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