Forum Discussion
Joseph_Johnson_
Nimbostratus
Jul 14, 2014HTTP Redirect to Different Domain
Hi,
I am fairly new to F5 irules and i have been tasked with setting up a redirect from a marketing url to the login of an already established site within our company. I am using a simple url r...
Kevin_Stewart
Employee
Jul 14, 2014Something like this perhaps:
when HTTP_REQUEST {
switch -glob [string tolower [HTTP::host]] {
"www.sub.com" {
HTTP::respond 301 Location "http://sub.domain.com[HTTP::uri]OLA/faces/login.jspx?"
}
"sub.domain.com" -
"domain2.com" {
HTTP::respond 301 Location "https://sub.domain.com[HTTP::uri]OLA/faces/login.jspx?"
}
}
}
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
