laredotornado@zipmail.com wrote:
> My clients are currently using their web browsers to access
> ftp://mydomain.com, running on a server with Apache 1.31. I wish to
> redirect them to ftp.mydomain.com, which is hosted on another server.
> Is it possible to construct an .htaccess file to make such a redirect?
..htaccess files are a place to put Apache configuration directives. Apache
is a very powerful generic server, but its primerally designed to be an
HTTP server, not an FTP server.
While it is *possible* that you are using it as an FTP server, its highly,
highly unlikely (I'm not aware of any prewritten packages to turn Apache in
to an FTP server, although I have seen it used as an SMTP server).
Obviously you can not configure another server running on the same machine
using Apache configuration directives ... and I don't think that the FTP
protocol includes the ability to redirect to another server anyway.
I think that FTP allows you to provide a message of the day, you could run
an ftp server on "mydomain.com"[1] just to provide a MOTD.
Another option might be to use port forwarding to forward ftp requests - but
since ftp has complicated passive/active use of multiple ports that would
be rather tricky.
[1] Do you really own mydomain.com? If not then please use example.com for
examples, that's what it is there for.
--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is