Forum Discussion
Qamar_Zia_13515
Nimbostratus
Jun 01, 2014IRULE Help
Hi,
I need IRULE help to acheive the below requirement:
Request for (abc.gov.us)
Redirect to (abc.us)
Request for ecouncil.us
(abc.encouncil.us)
Appreciate if some one help me ou...
The_Bhattman
Nimbostratus
Jun 01, 2014Hi Qamar,
I think you are looking for something like the following:
when HTTP_REQUEST {
if {[HTTP::uri] eq "/" } {
switch -glob [string tolower [HTTP::host]] {
"abc.gov.us" { HTTP::redirect "http://abc.us[HTTP::uri]" }
"ecouncil.us" { HTTP::redirect "http://abc.encouncil.us[HTTP::uri]" }
}
}
}
I hope this helps,
-=Bhattman=-
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