Forum Discussion

adiezma_1656's avatar
adiezma_1656
Icon for Nimbostratus rankNimbostratus
Mar 05, 2012

Redirect HTTP to FTP in browser

Hi

 

 

 

I need to do a redirect from http://ftp.domain.es to ftp://ftp.domain.es

 

 

 

The redirect involves a change of protocol, and do not know if it is advisable to do in F5 or if you can do. It's possible with a iRule?

 

 

 

The purpose of this is that users do not have to put ftp:// at the beginning of the bar of the browser to connect to a particular ftp.

 

 

 

Thanks.

 

 

 

Antonio

 

  • Hi Antonio,

    That logic should work for browsers that support ftp:// links. Does it work if you test it?

    
    when HTTP_REQUEST {
       if {[string tolower [HTTP::host] eq "ftp.domain.es"}{
          HTTP::redirect "ftp://ftp.domain.es[HTTP::path]"
       }
    }
    

    Aaron