Forum Discussion

Korai_331784's avatar
Korai_331784
Icon for Altostratus rankAltostratus
May 30, 2018

F5 Re-direct for document Link

Hi,

 

I want to know if we can have redirect irule on F5 to redirect the document link.

 

Source Link : Destination Link :

 

we don't want to affect existing redirect rule attached with virtual server.

 

6 Replies

  • Yes you can add two iRules in a single VS or edit existing iRule if both are co-related.

     

    Please share existing iRule so that I can answer complete script with you .

     

    • Korai_331784's avatar
      Korai_331784
      Icon for Altostratus rankAltostratus

      Hi Thanks,

       

      This time it works and thanks to all for supporting me

       

  • when HTTP_REQUEST { if { [string tolower [HTTP::host]] eq "; and [HTTP::path] eq "/documents/A.A.A.A.pdf" } { HTTP::respond 301 Location "; } }

     

    • Korai_331784's avatar
      Korai_331784
      Icon for Altostratus rankAltostratus

      Thanks Dali,

       

      So If I go with your second irule script it wont impact my existing live webside traffic.

       

      I just to redirect link ending with .pdf to destination link while first part of the live site dont needs to be impacted.