Forum Discussion

Peter_71625's avatar
Peter_71625
Icon for Nimbostratus rankNimbostratus
Mar 27, 2009

Redirect without showing in browser

Hi there,

 

 

i want to create a Irule how redirects a link ends with "bla" to "www.bla.com".

 

But without showing it in the browser.

 

 

i have this one:

 

 

when HTTP_REQUEST

 

{

 

set uri [HTTP::uri]

 

if { ($uri ends_with "bla" ) } {

 

HTTP::redirect "https://www.bla.com/" }

 

}

 

 

But this on shows it in the browser.

 

 

Tanks for any help!
  • hoolio's avatar
    hoolio
    Icon for Cirrostratus rankCirrostratus
    Hi,

     

     

    You can use HTTP::uri "/new_uri" to rewrite the URI before the request is sent to the pool member. This change should be transparent to the user.

     

     

    However, I'm not sure what exactly you're trying to do. Is www.blah.com being load balanced by the LTM? Or can it be? If so, you could transparently rewrite the request. If not, you'll need to stick with the redirection and the client will see the update to the URL in the address bar.

     

     

    Aaron