Forum Discussion
Dave_73612
Nimbostratus
Jul 01, 2009Multiple 301 redirects and F5 performance
Hi guys,
I have a requirement to do over 40 301 redirects (google ranking purposes) for one of our websites which I was going to implement via IRule attached to the Virtual server for the site.
The IRule is structured as follow's:
when HTTP_REQUEST {
if { [HTTP::uri] equals "/index.html" } {
HTTP::respond 301 Location "blah"
}
if { [HTTP::uri] equals "/index.html" } {
HTTP::respond 301 Location "blah"
}
if
etc covering the 40 redirects.
I am wondering if there is a "faster" way to write this code?
Would url rewrites be of any benefit?
What is the performance overhead of running this Irule?
Is this the right approach?
Thanks in advance,
Dave
11 Replies
- hoolio
Cirrostratus
That will replace /index.htm with / in the URI and then redirect the client to the new location.
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