Forum Discussion
dacrud_18985
Nimbostratus
May 20, 2008redirect help
Hi all,
So this is the iRule I'm trying to create:
* redirect anything.domain.com to www.domain.com
* if anything.domain.com/us, first make it www.domain.com/us an...
dacrud_18985
Nimbostratus
May 20, 2008Will this work:
when HTTP_REQUEST {
if { [HTTP::host] contains "domain.com"} {
HTTP::redirect http://www[getfield [HTTP::host] ".domain.com" 2][HTTP::uri]
}
if { [HTTP::uri] starts_with "/us" } {
pool pool.name
}
if { [HTTP::uri] starts_with "/au" } {
pool pool.name
}
}
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
