Forum Discussion
Sekou_Page_1118
Nimbostratus
Apr 26, 2006URL 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
Sort By
- Colin_Walker_12Historic F5 AccountCheck 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.
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects