Http request to redirect ftp link


#1

Hi All,

I have a domain e.g. mydomain.com. I have done ftp settings for one user.
now I want to open ftp link using a http link.

Suppose I have a link www.mydomain.com/source/myfolder. Now when I click on the link or when I copy or paste the link in browser then it should redirect to ftp://mydomain.com/source/myfolder.

Can it is possible by doing settings in Dreamhost? If yes, how should I do this.

Thanks in advance.


#2

You can just make the link be this:

Redirecting the www would be tricky, though in theory it can be done with .htaccess. You’d want to put a special .htaccess in your myfolder folder, and use something like the notes in this link to force downloads: http://drupal.org/node/417866