Forum Discussion
rhino_109458
Jan 18, 2012Nimbostratus
help on irule redirect
hello
f5 noob here
i have a machine running different virtual servers
i want to make a simple redirect to a speciffic URL and found this on some other posts
wh...
hooleylist
Jan 18, 2012Cirrostratus
Hi Rhino,
Try adding a check of the URI so you only redirect / to /hello. Also the host header won't have the protocol in it.
when HTTP_REQUEST
{
if { [string tolower [HTTP::host]] eq "aaa.com" and [HTTP::path] eq "/"} { HTTP::redirect https://aaa.com/hello }
}
Aaron
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