Forum Discussion
scott_sams_8256
Nimbostratus
Jun 08, 2010irule redirection question
i guess i am looking for an opinion on an idea i have.
we manage a handful of domains and are starting to get more and more redirect requests. i was told by our ecom director that i should ...
scott_sams_8256
Nimbostratus
Jun 09, 2010wow, that looks pretty in depth. i will take this and work on converting it to 10.1 and implementing in a qa. in the interim since i only have three now, would this suffice?
when HTTP_REQUEST {
if {[string tolower [HTTP::host]] equals "www.example1.com" } {
HTTP::redirect "http://www.redirect1.com/redirect"
}
elseif {[string tolower [HTTP::host]] equals "www.example2.com" } {
HTTP::redirect "http://redirect2.com/main.aspx"
}
elseif {[string tolower [HTTP::host]] equals "www.example3.com" } {
HTTP::redirect "http://redirect3.com/lite/main.aspx"
}
}
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
