Forum Discussion
Lazaro_Pereira_
Nimbostratus
Aug 11, 2014iRule to change a take a URL and add URI then send to a Pool.
Hi Everyone,
I have a simple pool selection iRule in place for some internal sites but have been asked to have a URI added at the end to make it easier for people to access. I currently have:
w...
- Aug 11, 2014
Try this one:
when HTTP_REQUEST { switch [string tolower [HTTP::host]] { "sharepoint.test-site.com" { if { [HTTP::uri] equals "/" } { HTTP::redirect "https://[HTTP::host]/Pages/default.aspx" } else { pool /Internal/F5-Internal-Pool_sharepoint } } default { discard } } }
Lazaro_Pereira_
Nimbostratus
Aug 11, 2014Thanks it worked like a dream!
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