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 ?
Thanks
Sameer
4 Replies
Sort By
- nitass
Employee
How to configure Http 301 redirect ?e.g. - What_Lies_Bene1
Cirrostratus
In case it's not clear, you need to create an iRule, enter the appropriate code (examples on the page provided by nitass), save it and then assign it to one or more Virtual Servers. - Sameer_81091
Nimbostratus
Thanks for the reply.. - hoolio
Cirrostratus
You 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 } }
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