Forum Discussion
KJ_50941
May 14, 2015Nimbostratus
Redirect Irule help
current irule for this app is as below. both test and test 2 resolves to 192.168.192.1=example.com
when HTTP_REQUEST {
if { [HTTP::uri] eq "/" } {
HTTP::redirect https://[HTTP::host]...
nitass
May 15, 2015Employee
e.g.
when HTTP_REQUEST {
if { [HTTP::uri] equals "/" } {
switch -glob [HTTP::host] {
"*test1*" {
HTTP::redirect "http://example.com/test1"
}
"*test2*" {
HTTP::redirect "http://example.com/test2"
}
default {
Host does not contain test1 or test2
Do something
}
}
} else {
URI is not root (/)
Do something
}
}
- KJ_50941May 15, 2015NimbostratusThank you, will test later on.
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