Forum Discussion
bvinson_12764
Nimbostratus
Nov 02, 2009Domain Redirect
Hello,
Pretty new to Irules,
How do I,,,
I have a new domain and a old domain that point to the same Web services.
lets call them new.com an...
The_Bhattman
Nimbostratus
Nov 02, 2009I suppose you can do the following
when HTTP_REQUEST {
if { [HTTP::host] contains "old.com"} {
HTTP::redirect http://[getfield [HTTP::host] ".old.com" 1].new.com[HTTP::uri]
}
}
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