Forum Discussion
adam_miller_143
Nimbostratus
Oct 28, 2009Simple Redirect?
Hello All,
I have an iRule that will hopefully redirect anyone with out a URI to a specific URI (/login/login.asp)
when HTTP_REQUEST {
if {([HTTP::uri] equals "/")}
{
HTTP::redirect "/login/login.asp"
}
}
This works perfect, however, in watching the statistics it seems this iRule is ran with every request.
This means every time i hit this VIP, it executes the iRule multiple times each request (assuming its pictures, css downloads...etc)
Is there a way to prevent this? I am afraid with a high volume of traffic it will induce performance issues.
Any help will be appreciated.
- hoolio
Cirrostratus
If you add the iRule to a VIP, the code in the HTTP_REQUEST event will be executed on each HTTP request. This is expected. There isn't a way around this and it shouldn't add noticeable load.
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