Forum Discussion
david_quint_204
Nimbostratus
Sep 25, 2008Simple HTTP redirects not working
Guys, I am having some issues with migrating an old iRule from v4.x to v9.45. We have an External IP address 65.170.177.8 (NAT'ed to an internal address ie:VIP) that has DNS entries for multiple URL'...
david_quint_204
Nimbostratus
Sep 25, 2008Thanks, I removed the https redirect to http and we still cannot get the url's to redirect to the new url's in the rule.
Is it possible to do a HTTP url redirect to a different url with matched conditions.
Here is the new iRule:
when HTTP_REQUEST {
switch -glob [HTTP::host] {
{"*newlifepubs.com"} {
HTTP::redirect "http://www.campuscrusade.com/nlp"}
{"*mpd.ccci.org"} {
HTTP::redirect "http://staffweb.ccci.org/mpd/index.aspx"}
{"*staffweb.org"} {
HTTP::redirect "http://staffweb.ccci.org"}
{"staff.ccci.org"} {
HTTP::redirect "http://staffweb.ccci.org"}
{"myspam.ccci.org"} {
HTTP::redirect "https://spam.frontbridge.com"}
{"cars.ccci.org"} {
HTTP::redirect "http://cds.ccci.org/carschoose.asp"}
{"*movementseverywhere.org"} {
HTTP::redirect "http://www.ccci.org"}
{"*movementseverywhere.net"} {
HTTP::redirect "http://www.ccci.org"}
{"*movementseverywhere.com"} {
HTTP::redirect "http://www.ccci.org"}
default {
discard
}
}
}
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
