Forum Discussion
Edu_50128
Apr 06, 2011Nimbostratus
URL redirect
Hello,
I´m new in iRules...
I need to configure F5 to redirect a URL... so it is, I need to redirect the traffic for the url www.mypage.com to www.newpage.com, but the last one is ...
Michael_Yates
Apr 06, 2011Nimbostratus
Yes. That will work and result in a 302 Temporary Redirect.
You can send a 301 Permanent Redirect using HTTP::respond if you prefer.
when HTTP_REQUEST {
if { [HTTP::host] equals "www.mypage.com" } {
HTTP::respond 301 Location "http://www.newpage.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