Forum Discussion
sundogbrew
Oct 04, 2017Altocumulus
IRule for redirect based on url
I am trying to do a irule redirect for urls. I am trying to trick something for a DR situation. I have a redirect service that is off campus. So for my DR situation I have a closed off network. ...
Jad_Tabbara__J1
Oct 05, 2017Cirrostratus
Just to correct your irules :
First
when HTTP_REQUEST {
if { [string tolower [HTTP::host]] contains "bla"}{
HTTP::redirect "https://www.bla.com"
} elseif { [string tolower [HTTP::uri]] contains "zip"}{
HTTP::redirect "https://www.zip.com"
} elseif { [string tolower [HTTP::uri]] equals "stuff"}{
HTTP::redirect "https://stuff.com"
} else {
pool PFA_NodePool_All
}
}
- mdsaudOct 11, 2022Nimbostratus
Hi,
Can you help me on this to redirect the path:
https://mcconxvip001.ucsfmedicalcenter.org:81/files/ADM/index.htmlRun below iRule but not working.
if { [HTTP::uri] equals "/"}
{
HTTP::redirect "https://[HTTP::host]/files/ADM/index.html"
}
}
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