Forum Discussion
MSK_222682
May 27, 2016Nimbostratus
Redirecting iRule
Hi, I have a requirement from the business as below,
Currently there is a homepage of the vendor as www.abc.co.kr/ko.html (URL1)
The end users access the above homepage and then access a link ...
Vijay_E
May 27, 2016Cirrus
Try this:
when HTTP_REQUEST {
if { $HOST eq "www.abc.co.kr"} {
HTTP::host [string map {www.abc.co.kr xyz.abc.co.kr} [HTTP::host]]
}
when HTTP_RESPONSE {
if { [HTTP::header values Location] contains "xyz.abc.co.kr" } {
HTTP::header replace Location [string map {xyz.abc.co.kr www.abc.co.kr} [HTTP::header value Location]]
}
}
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