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 aborts.
The last two redirects "bloomsday" and "mcll" return page 404 not found.
when HTTP_REQUEST {
switch -glob [string tolower [HTTP::uri]] {
"prodep" {
HTTP::redirect ""
}
"prodev" {
HTTP::redirect ""
}
"potentiel" {
HTTP::redirect ""
}
"potential" {
HTTP::redirect ""
}
"milr" {
HTTP::redirect ""
}
"langue" {
HTTP::redirect "http:://[HTTP::host]/conted/langprg/fulltimefrench/"
}
"language" {
HTTP::redirect "http:://[HTTP::host]/conted/langprg/fulltimeenglish/"
}
"eflp" {
HTTP::redirect "http:://[HTTP::host]/conted/langprg/"
}
"continue" {
HTTP::redirect "http:://[HTTP::host]/conted/prodep/"
}
"conted-translation" {
HTTP::redirect "http:://[HTTP::host]/conted/acad/translation/"
}
"conted-span-port" {
HTTP::redirect "http:://[HTTP::host]/conted/acad/spanport/"
}
"conted-general" {
HTTP::redirect "http:://[HTTP::host]/conted/acad/facultypartnerships/"
}
"conted-cms" {
HTTP::redirect "http:://[HTTP::host]/conted/acad/cms/"
}
"conted-apply" {
HTTP::redirect "http:://[HTTP::host]/conted/applyregister/"
}
"cce-internet" {
HTTP::redirect "http:://[HTTP::host]/conted/programs/grad/it/"
}
"cce-translation" {
HTTP::redirect "http:://[HTTP::host]/conted/acad/translation/"
}
"cce-spanish" {
HTTP::redirect "http:://[HTTP::host]/conted/acad/spanport/"
}
"cce-programs" {
HTTP::redirect "http:://[HTTP::host]/conted/programs/"
}
"cce-info" {
HTTP::redirect "http:://[HTTP::host]/conted/acad/infosessions/"
}
"scs-internet" {
HTTP::redirect "http:://[HTTP::host]/conted/programs/grad/it/"
}
"scs-translation" {
HTTP::redirect "http:://[HTTP::host]/conted/acad/translation/"
}
"scs-spanish" {
HTTP::redirect "http:://[HTTP::host]/conted/acad/spanport/"
}
"scs-info" {
HTTP::redirect "http:://[HTTP::host]/conted/acad/infosessions/"
}
"bloomsday" {
HTTP::redirect "http:://[HTTP::host]/conted/milr/bloomsday/"
}
"mcll" {
HTTP::redirect "http:://[HTTP::host]/conted/milr/"
}
}
}
- richard_77048NimbostratusI 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/" }
- chungyu_16122Altostratus
Thanks for the input, and I will try it out.
- nitassEmployeedid you forget asterisk (*)?
"*bloomsday*" { HTTP::redirect "http:://[HTTP::host]/conted/milr/bloomsday/" } "*mcll*" { HTTP::redirect "http:://[HTTP::host]/conted/milr/" }
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