Forum Discussion
adiezma_1656
Mar 05, 2012Nimbostratus
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 proto...
hooleylist
Mar 05, 2012Cirrostratus
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
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