Forum Discussion
Joe_Pipitone
Nimbostratus
Jun 05, 2009Simple redirect
I am trying to simply redirect one domain to another, but for some reason I am getting an error. The iRule looks like this:
when HTTP_REQUEST {
if { !([HTTP::host] "domain1....
Joe_Pipitone
Nimbostratus
Jun 05, 2009I figured it out, the syntax was wrong:
when HTTP_REQUEST {
if { ([HTTP::host] eq "domain1.com") } {
HTTP::redirect "http://domain2.com"
}
}
that seems to work....
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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