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...
Jun 01, 2014
Try this one:
when HTTP_REQUEST {
set host [string tolower [HTTP::host]]
switch $host {
"abc.gov.us" { HTTP::respond 301 Location "http://abc.us" }
"ecouncil.us" { HTTP::respond 301 Location "http://abc.ecouncil.us" }
}
}
/Patrik
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