Forum Discussion
Zack_101440
Nimbostratus
Mar 29, 2007HTTP 301 Redirect
I am looking for a way to do a http redirect but be able to do a HTTP 301.
This code,
redirect to "http://bleh.nothing.com"
is a HTTP 302, where a HTTP 301 is a permanen...
nemmank
Nimbostratus
Jul 25, 2011Hi Zack,
Try this:
when HTTP_REQUEST{
if {[HTTP::host] equals "xxx.com"}
{HTTP::respond 301 "http://bleh.nothing.com[HTTP::uri]"}
}
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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