Forum Discussion
chungyu_16122
Feb 17, 2012Altostratus
Troubleshooting an HTTP Redirect iRule
Hi all
I am using an iRule to handle HTTP redirects, it works all my sites but 2, not sure why since the rule format is identical and the irules statistics does not show any failures or abo...
richard_77048
Feb 17, 2012Nimbostratus
I would start with some logging.
"bloomsday" {
log local0.debug "bloomsday redirect -- [HTTP::uri]"
HTTP::redirect "http:://[HTTP::host]/conted/milr/bloomsday/"
}
"mcll" {
log local0.debug "mcll redirect -- [HTTP::uri]"
HTTP::redirect "http:://[HTTP::host]/conted/milr/"
}
If you get hits in /var/log/ltm, then your logic was correct. At that point I would verify the redirect. Can you actually pull that page up in a browser?
If you don't get anything in the logs, I would add a logging line before your switch statement and log [HTTP::uri] and verify that your requested page has the URL you are expecting.
I don't see anything obviously wrong with your rule. That's how I would approach troubleshooting it though.
Richard
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