Forum Discussion
John_Yeo_48557
Nimbostratus
Feb 02, 2006redirect for specifiic URI with offsite web servers
Need to use BigIP 4.5.13 to perform redirect only - there is no load balance pool for servers. We own the "mydomain.com" and can point that DNS record to our BigIP, but the servers are located and man...
Colin_Walker_12
Feb 09, 2006Historic F5 Account
That would look something like:
if ( (http_host == "mydomain.com") and (http_uri == "/a/b") ) {
redirect to http://redirectdomain.com/b
}Now, assuming you want to take whatever /b is from the initial request and pass it on to the new server, then you'd have to do something a little more involved:
if ( (http_host ends_with "mydomain.com") and (http_uri == "/a/b") ) {
redirect to "http://redirectdomain.com" + getfield(http_uri, '/', 3)
}I think this is pretty close to what you're looking for. Let me know if you have further questions.
-Colin
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