Forum Discussion

Sekou_Page_1118's avatar
Sekou_Page_1118
Icon for Nimbostratus rankNimbostratus
Apr 26, 2006

URL redirection suggestions

This is related to a post I just made on HTTP URI performance... We have a need to direct clients to specific pools of web servers depending on the URL they used. However, we have literally hundreds of URLS, which means very long iRules. We are looking into changing the web site so that we use some other method of doing this (any suggestions would be appreciated) - currently considering a specific HTML tag so we don't need to keep modifying the iRule.

 

 

Sample URLS would be:

 

http://site.com/url1

 

http://site.com/url2

 

http://site.com/url3

 

 

These (along with hundreds of other URLS) would be going to several web server pools... but this currently means adjusting the iRule every time we add a new URL. Any suggestions on a method (likely to be on the web server) for creating iRules that could be more static and only added/modified when we change web servers instead of URLS.

 

 

FYI - our current iRule implementation can be found here:

 

http://devcentral.f5.com/default.aspx?tabid=28&view=topic&forumid=5&postid=7718

1 Reply

  • Colin_Walker_12's avatar
    Colin_Walker_12
    Historic F5 Account
    Check the answer in your other post. The solution provided by citizen_elah is a basic setup using a class to manage the different URI to redirect relationships, rather than a string of if statements. This should show not only a significant performance gain, but it means that the iRule itself can stay almost completely static. All you would be modifying is the class that contains the URI / redirect info.

     

     

    Colin