Forum Discussion
dacrud_18985
Nimbostratus
May 16, 2008subdomain irule redirect
Hi all,
I'm trying to get an iRule to do this:
http://*anything*.domain.com/blah/blah redirect to http://www.domain.com/blah/blah
Any help would be much ap...
JRahm
Admin
May 16, 2008Use getfield:
when HTTP_REQUEST {
if { [HTTP::host] contains "domain.com"} {
HTTP::redirect http://www[getfield [HTTP::host] ".domain.com" 2][HTTP::uri]
}
}
Click here for the wiki page for getfield.
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