Forum Discussion

Sameer_81091's avatar
Sameer_81091
Icon for Nimbostratus rankNimbostratus
Oct 13, 2012

Http 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

  • How to configure Http 301 redirect ?e.g.

     

     

    HTTP To HTTPS Redirect 301

     

    https://devcentral.f5.com/wiki/iRules.HTTPToHTTPSRedirect_301.ashx
  • 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.
  • 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
  • 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