Tyron_Fourie_18
Oct 29, 2015Cirrus
Solved
Redirect URL
Hi,
I am looking to redirect http://www.examplesite.com/Examplepage.html to an external site like http://www.externalsite.com/
As I understand it there are multiple ways to do this so I have 2 questions about it.
- Which is the best way to do this?
- Which is the easiest way to do this?
I have tried multiple methods in doing this and have failed each time. Namely:
- https://devcentral.f5.com/questions/simple-url-redirect-irule
- https://devcentral.f5.com/questions/irule-for-http-redirect-from-retired-url-to-new-url
- Redirect Policies
- Rewrite Service
Thanks in advanced.
I had a similar situation. What i did was: * create a pool with no active members * create a VS and assign this pool to it * create an irule which looked at the of active members in the pool and if is 0 then redirect to external URL The irule is as below:
when HTTP_REQUEST { if { [active_members TS-EmptyPool] == 0 }{ HTTP::redirect "https://www.surveymonkey.com/s/eg.survey" } }
karthik