Forum Discussion
KJ_50941
Nimbostratus
Jun 26, 2014irule redirect or rewrite
Hi
I need an irule to redirect from shortname: https://example to https://example.com/test
I used below irule , however shortname doesn't work, but if I type fully qualified domain works ju...
Cory_50405
Noctilucent
Jun 26, 2014It sounds like DNS is resolving as intended. Are you certain your iRule is matching on 'example'? Try putting a logging statement into the iRule and see if anything shows up in /var/log/ltm:
when HTTP_REQUEST {
if { [string tolower [HTTP::host]] eq "example" } {
log local0. "Matched example host, redirecting"
HTTP::redirect "https://example.com/test"
}
}
KJ_50941
Nimbostratus
Jun 30, 2014I put exact irule for logging, however I am not seeing it when accessing F5 VIP.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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