Forum Discussion
adam21983_1462
Nimbostratus
Jan 18, 2013Simple URL Redirect Question
Hello Everyone,
Sorry if this is overly simple but I am driving myself crazy trying to get this to work. In the below iRule my redirect works if the request is sent to http://redirecttes...
What_Lies_Bene1
Cirrostratus
Jan 18, 2013Try this;
when HTTP_REQUEST {
if { (([string tolower [HTTP::host]] equals "redirecttest.mysite.com") or ([string tolower [HTTP::host]] equals "www.redirecttest.mysite.com"))} {
HTTP::redirect "http://google.com"
return
}
}
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