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
- nitass
Employee
How to configure Http 301 redirect ?e.g.
HTTP To HTTPS Redirect 301
https://devcentral.f5.com/wiki/iRules.HTTPToHTTPSRedirect_301.ashx - 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.
If you could provide more detailed requirements perhaps we could provide a more detailed response. - Sameer_81091
Nimbostratus
Thanks for the reply..
How many redirection can be configure in LTM , is there any limititaion of redirection ?
We have requirment to configure 25000 Urls, can this will achive in single LTM ?
Thanks
Sameer - 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 } }
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
