BIG-IP Solutions: Simple URL Redirect Using Policies

BIG-IP Solutions: Simple URL Redirect Using Policies

Many people use iRules for URL redirects, but the BIG-IP offers policies to do this for you. Policies are faster than iRules, they are easier to manage, and you don’t have to know the exact scripting language code to use them. Check out this video where John provides some “BIG-IP Solutions” to show you how to do simple URL redirects using policies.

13 Comments

  1. G- FalconX on February 16, 2022 at 10:36 pm

    could we only do this on a http vip?



  2. ekooter on February 16, 2022 at 10:40 pm

    The disadvantage of this way is that it will always be a 302 (temporary) redirect. It’s also not possible to reuse parts of the path in the original request in the redirect.
    Otherwise I really like policies and use them a lot to select pools, enable serverside ssl, etc…



  3. zoom7878 on February 16, 2022 at 10:43 pm

    How do I preserve url extention using policy. say http://www.xyz.com/abc forward to http://www.qa.com/abc



  4. Ashish Takawale on February 16, 2022 at 10:44 pm

    Hi I want to append URI in this case so if user hits test.com/resources/ it should redirect to https://devcentral.com/resources

    Basically URI should not change it should append



  5. Ivo Roperto on February 16, 2022 at 10:51 pm

    Very nice! thanks F5 for this video.



  6. Alireza Marefatvayghani on February 16, 2022 at 11:07 pm

    if I want to redirect the "www.exapmle.com" to the "non-www example.com", would the policy helpful or it only needs to be done via irule?



  7. Nathaniel Wood on February 16, 2022 at 11:07 pm

    I thought policies were essentially a GUI that still uses TCL/iRules for the actual function? Is that not the case?



  8. Himanshu Namdeo on February 16, 2022 at 11:15 pm

    How i can forward the request to different servers without redirecting (do not want 3XX status). I do not want a redirect but a forward so backend code do not get a 3XX status .



  9. Ivan Popovic on February 16, 2022 at 11:17 pm

    Hello,

    I have one question, here you explained when VS is for HTTP requests, but how i can accomplish if i want to next: if someone try http://test.com or https://test.com to be redirected on https://my_site.com
    do i need to create 2 VS or is this possible at all?
    Thanks.



  10. Mustafa Darwish on February 16, 2022 at 11:18 pm

    Hello Thank you for the video. I’ve a question here. I want to perform ssl offloading to a server that operates on port 9502. I’ve created pool contains node that listens on port 9502 and created vserver that listens on port 80 that matches the pool and I can access the web using http://server:9502, however when I perform the same on https vserver using port 443 it doesn’t work. it doesn’t on https even on port 9502. I’m not sure what should i do ?



  11. KID TV on February 16, 2022 at 11:19 pm

    how to configure url redirect to specific pool? for example /trackingnew_sb to pool A and /trackingold_sb to pool B



  12. Hoang Hung on February 16, 2022 at 11:31 pm

    Hi F5 :
    We have 1 problem. we use 1 uri have ( 2 http)ex:
    http://uat-pcm-app01.ena.com:9001/ARXAuth/LoginScreen.jsp?redirectURL=http://uat-pcm-app01.ena.com:9001/ARXAL/AALIndex.jsp&userType=Cop : access direct to Server (OK)
    But via F5 and use irule (F5) redirect it only redirect only 1 http >> https

    1/ https://pcmuat-bo.ena.com/ARXAuth/LoginScreen.jsp?redirectURL=http://pcmuat-bo.ena.com:80/ARXAL/AALIndex.jsp&userType=Cop ( if use via F5 we use domain name )
    ( access fail)
    if we try test and use uri
    2/ https://pcmuat-bo.ena.com/ARXAuth/LoginScreen.jsp?redirectURL=https://pcmuat-bo.ena.com/ARXAL/AALIndex.jsp&userType=Cop (OK) (2)
    How do you do redirect with URI 2 ?
    Please help use



  13. Kleber Souza on February 16, 2022 at 11:31 pm

    How to create a forward to conditional IP with resolution? For example, I Have 2 IPs 10.10.1.12 e 10.10.1.13 e wish to create resolution and conditional to zones below: infra.etc; tst.infra.etc and tsl.infra.elo ?