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 managed offsite for both "mydomain.com" and "redirectdomain.com"
Request is to redirect only http://www.mydomain.com/a/b to http://redirectdomain.com/b
How do I perform a redirect for only URI /a/b to just URI /b and have everything else e.g http://www.mydomain.com or http://www.mydomain.com/x not use a redirect when the DNS for "mydomain.com" will point to BigIP and there is no pool?
- Colin_Walker_12Historic F5 AccountThat would look something like:
if ( (http_host == "mydomain.com") and (http_uri == "/a/b") ) { redirect to http://redirectdomain.com/b }
if ( (http_host ends_with "mydomain.com") and (http_uri == "/a/b") ) { redirect to "http://redirectdomain.com" + getfield(http_uri, '/', 3) }
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