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 appreciated.
2 Replies
- JRahm
Admin
Use getfield:when HTTP_REQUEST { if { [HTTP::host] contains "domain.com"} { HTTP::redirect http://www[getfield [HTTP::host] ".domain.com" 2][HTTP::uri] } }
- dacrud_18985
Nimbostratus
Thanks a bunch.
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