Forum Discussion
PacketHead_4009
Nimbostratus
Feb 17, 2010Simple redirect ?
Ok, this probably doesn't qualify for Adv Configuration but I couldn't find a spot where this question would fit.
How I can create a redirect so that if a user tries to go to:
...
hoolio
Cirrostratus
Feb 18, 2010Can you add logging to the iRule and check the log output in /var/log/ltm to see what's happening in the rule?
when HTTP_REQUEST {
log local0. "[IP::client_addr]:[TCP::client_port]: [HTTP::method] request to [HTTP::host][HTTP::uri]"
if {([HTTP::host] eq "webmail.mysite.com") and ([HTTP::uri] eq "/")} {
log local0. "[IP::client_addr]:[TCP::client_port]: Redirecting to https://webmail.mysite.com/home/mail/default/"
HTTP::redirect "https://webmail.mysite.com/home/mail/default/"
}
}
Thanks,
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
