Forum Discussion
glen_unwin_1051
Nov 02, 2006Nimbostratus
iRule re-direct
Hello
I wonder if you could help me please?
We are running a Big Ip 1500 version 9 for load balancing and SSL for our web site.
Could you possibly help me with the installation of an iRule which will will replace the old iRule (302 redirect) to a 301 redirect as follows:
OLD iRule (which gives a 302 redirect) :-
when HTTP_REQUEST {
if { [HTTP::host] contains "co.uk" } {
HTTP::redirect "Error! Hyperlink reference not valid."
}
}
NEW iRule :-
when HTTP_REQUEST {
if { [HTTP::host] contains "co.uk" } {
HTTP::respond 301 Location "Error! Hyperlink reference not valid."
}
}
Can you advise as to whether this rule is likely to cause us any issues please?
GlenUnwin@hastingsdirect.com
- I honestly don't know how your OLD rule worked as you issues a redirect to an error string. The usage for HTTP::redirect is
- glen_unwin_1051NimbostratusJoe
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