Forum Discussion
fazinfar_29104
Nimbostratus
Aug 13, 2009http 301 redirect..HELP Please
Hello everyone,
I am new at iRules and i need to setup one pretty quickly. I appreciate any help.
I need to setup an iRule on one of my virtual server to do http 301 redirect.
lets say i need to redirect the traffic from www.test1.com to www.test1.new.com.
Is this rules correct?
when HTTP_REQUEST
{ HTTP::respond 301 "www.test1.new.com" "http://www.[HTTP::host][HTTP::uri]"
- The_Bhattman
Nimbostratus
How about doing it in the following:when HTTP_REQUEST { if {[HTTP::host] eq "www.test1.com" } { HTTP::redirect "http://www.test1.new.com" } }
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