PDA

View Full Version : uploading to an FTP


Mr Urt
March 19th, 2002, 02:05
I can't get it to work. I dled WS FTP Pro, and that worked fine, I was able to connect and everything. the problem is in uploding the webpages. the host wants u to use a file called "index.html", and I uploaded that and that works fine, but the problem is, how do I link to another webpage¿ the site is set up http://hostname.com/~mrurt, and that is my "index.html" file, that works fine, but what do I upload if I wanna make a link from that site to say, http://hostname.com/images¿ should I upload a folder called "images" with a html file called "images" inside it¿ or should the file "images" stay in the root directory¿ :help:

Nezzar
March 19th, 2002, 14:33
I'm not sure what you mean here.
If you want a folder with images just create one (or upload the folder with contents) and put an index.html (or .htm) in it. You have to do that for every folder which will be accessed by users directly. No need to do this if you it's only linked or something.
The index.html will be the default for every folder the apache (if it is apache) create an index of the files in this folder itself but only if directory browsing is switched on.

ShADoWFLaRe85
March 20th, 2002, 04:49
Every server has configured "homepages" the homepages are just pre-defined filenames that tell the server which page to deliver first out of each directory. In this case, it is index.htm or index.html. Think of the ftp as a folder on your windows machine. If you have a folder called 'website' that is your wwwroot and you create a folder in there called 'images' the address to that folder becomes http://www.hostname.com/images. Now, every folder that you create may contain its own index.htm file. When you browse to http://www.hostname.com, the server first looks for a file with the same name as one of the known homepage filenames and then delivers that file to the remote user. If it can't find one, it may sometimes deliver what's called a directory listing. That is, it lists all the files in the current directory/folder. I also am not completely sure what you're asking, but I hope this helps... :)

Mr Urt
March 20th, 2002, 21:40
I think I get it now, and I think u helped me, but I have no way to check cuz it's not letting me connect to the ftp site now :sad:

ShADoWFLaRe85
March 21st, 2002, 04:59
Glad I could help :D