Forum Discussion
Skuba_85554
Nimbostratus
Feb 24, 2010would this irule impact performance?
hi
i appreciate this is only a very basic irule, but i have been asked whether or not this is overkill...
when HTTP_REQUEST {
switch [string tolowe...
hoolio
Cirrostratus
Feb 24, 2010Hi Skuba,
A few minor notes on the example you posted:
You're not saving the value of [string tolower [HTTP::uri]] or evaluating any switch cases. So I'm guessing you might want to redirect all requests to https://mywebsite.com with the original URI set to lower case. If that's accurate, you could use an HTTP class with the redirect to field set to:
https://mywebsite.com[string tolower [HTTP::uri]]
This should be more efficient than using an iRule. But using a simple iRule like that would not have a significant impact on CPU/memory usage.
Also, [HTTP::uri] should already include a leading forward slash, so you wouldn't want to manually insert another one between the hostname and the URI.
Aaron
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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