Forum Discussion
Venkat_96085
Nimbostratus
May 08, 2009Redirect Rule...
Hi,
I want to write an iRule for redirection but I am unable to do so. I want to read whole URL for example http://www.xyz.com and then redirect it to http://www.abc.com/index.html.
...
dennypayne
Employee
May 08, 2009Hi Puneet,
This should do the trick:
when HTTP_REQUEST {
if { HTTP::host equals "www.xyz.com" } {
HTTP::redirect "http://www.abc.com/index.html"
}
}
Denny
EDITED to use correct command
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