Forum Discussion
URI Add on
Hi All
I am having a bit of difficulty to create what seems to be a fairly simple iRule.
I need an iRule that will add on a URI to an incoming request, example user goes to http://xyz.co.za they will get redirected to http://xyz.co.za/redirect.
I have found a few ideas on how to do it but it seems it the connection keeps going in a loop and the page eventually gives an error and does not load.
Can anyone assist with an iRule that will redirect the user on the initial request and not again while they are active in a session.
Thanx Sulaiman
4 Replies
- VernonWells
Employee
when HTTP_REQUEST { if { [HTTP::path] eq "/" } { HTTP::redirect "http://[HTTP::host]/redirect" } }Alternatively, if you are running 11.4+, you could use a Local Traffic Policy:
- SL
Cirrus
Working like a charm, will look at the Traffic Policy root as well for future ---- Update - Upon further testing the iRule is working perfectly except for when using Windows 10 IE 11, all other browsers are working. Any ideas???
- Vernon_97235Historic F5 Account
when HTTP_REQUEST { if { [HTTP::path] eq "/" } { HTTP::redirect "http://[HTTP::host]/redirect" } }Alternatively, if you are running 11.4+, you could use a Local Traffic Policy:
- SL
Cirrus
Working like a charm, will look at the Traffic Policy root as well for future ---- Update - Upon further testing the iRule is working perfectly except for when using Windows 10 IE 11, all other browsers are working. Any ideas???
Recent Discussions
Related Content
* 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