Forum Discussion

ERLomboy_27803's avatar
ERLomboy_27803
Icon for Nimbostratus rankNimbostratus
May 13, 2014

Redirect traffic from an old site to an existing

How can I setup an iRule on F5 to redirect users of a site (acquired) to another site?

 

example: Site A (push.apple.com) has its own VIP on the F5. Site B (blackberry.com) has its VIP on the same F5. We want to reclaim the VIP from Site A after we have successfully redirected users to Site B.

 

Do we need to create a CNAME for Site A on Site B and then use a redirect so that users won't see Site A on their browsers but instead Site B.

 

3 Replies

  • Hi You can use irule to redirect http 301 to the site B . i suppose you are retiring the site A .

     

    Irule:

     

    When HTTP_REQUEST { if { [string tolower [HTTP:HOST]] equals "push.apple.com"} { HTTP:respond 301 Location "blackberry.com" }

     

    • ERLomboy_27803's avatar
      ERLomboy_27803
      Icon for Nimbostratus rankNimbostratus
      Hi SynACk, Yes, we're retiring Site A but we'd want to reclaim the VIP assigned to it and repurpose. Do we still need to do any DNS changes?