Forum Discussion
Sameer_81091
Nimbostratus
Oct 13, 2012Http 301 redirect
Hi,
Please guide me for below query
How Http 301 redirection works?
How many url we can configure in LTM for http 301 redirection?
How to configure Http 301 redirect ?
...
hoolio
Cirrostratus
Oct 14, 2012You should be able to store about 100,000 name=value pairs in a string data group. You can use the class command to look up the requested URI in a data group (redirects_dg in the example below) and issue a redirect to the corresponding value:
when HTTP_REQUEST {
if {[set new_location [class match -value [HTTP::uri] equals redirects_dg]] ne ""}{
HTTP::respond 301 Location $new_location
}
}
Aaron
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
