Forum Discussion

Dixit_18200's avatar
Dixit_18200
Icon for Nimbostratus rankNimbostratus
Dec 12, 2008

Need Help

Hi,

 

 

I am Dixit and i have started working on f5 load balancer from past few month. Can some one please help me with irules. We have a requirement where in we need to redirect a website to another website which is not hosted in our environemt.

 

 

For example if www.xxxx.com is pointing to our load balancer VIP can i redirect this to www.yyyy.com which is not hosted in our environment and is over the internet?

 

 

Please help me.

 

 

  • James_Quinby_46's avatar
    James_Quinby_46
    Historic F5 Account
    If all you want to do is redirect any and all requests for www.xxx.com to www.yyy.com, the following should do it:

      
      when HTTP_REQUEST {  
          HTTP::redirect http://www.yyy.com  
        }  
      

    Simply apply this to the VIP of www.xxx.com, and you're done.

    I'm curious to know more about the use-case though. Is this for a 'maintenance page' or something like that, which will be shown when the main site is down? There may be a more elegant way to get where you want to go...