Forum Discussion
Brian_Mayer_841
Nimbostratus
Apr 27, 2007Domain redirect not working for non *.com domain
Hi,
We've added a section to our domain redirect iRule and it just will not redirect as expected. It actually tries loading pages (I see HTTP 200 responses and ojbects loading into the browser, but no 302 redirect to other domain specified).
However, when I put the same IIS redirect on the web server, the browser is sent to the correct URL. F5 Support seems to think the syntax of the iRule below looks good, and directed me here.
Can you guys help?
Thanks,
Brian
iRule:
==============
when HTTP_REQUEST {
switch -glob [HTTP::host] {
"*invitrogen.com.cn" {
HTTP::redirect "http://www.invitrogen.com/getgid.cfm?gid=197&returnURL=content.cfm?pageid=1"
}
}
}
==============
- Deb_Allen_18Historic F5 AccountHi Brian --
when HTTP_REQUEST { log local0. "Host: [HTTP::host]" switch -glob [HTTP::host] { "*invitrogen.com.cn" { log local0. "Host matches *invitrogen.com.cn: Redirecting" HTTP::redirect "http://www.invitrogen.com/getgid.cfm?gid=197&returnURL=content.cfm?pageid=1" } } }
- Brian_Mayer_841
Nimbostratus
Figured I'd let you all know I figured out the problem. It was user error. The iRule was fine, I was trying to access the wrong VS when testing it. Thanks for the help.
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