Forum Discussion
Bob_10976
Nimbostratus
Oct 22, 2008Redirecting Only Specfic URL Address
Hello All,
I've been task to setup a iRule that will redirect a url, subsite.mysite.com to mysite.com It actually seems pretty simple but the problem is subsite.mysite.com typically h...
dennypayne
Employee
Oct 29, 2008Again, the subsite.mysite.com is the host, so what you need is:
(pseudocode - not worrying about syntax here)
when HTTP_REQUEST {
if the [HTTP::host] equals "subsite.mysite.com" or "www.subsite.mysite.com"
and the [HTTP::uri] equals "/"
HTTP::redirect "http://mysite.com/"
}
Denny
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
