Add New Folders Before Adding Files Using FTP

colorful files in a drawer

Linda Raymond / Getty Images

Whether you're creating a new website or moving an old one you should set up your folders before you start adding webpages and other files. One way to do this is using FTP. This only works if your hosting service allows you to use FTP. If your service doesn't have FTP, you may still want to organize your site with folders but you will create them with other tools.

of 03

Organize Your Website With File Folders

If you create folders before you start adding webpages and other files, your website will be more organized. You can create a folder for graphics, another for audio, one for family webpages, another for hobby webpages, etc.

Keeping your webpages separate makes it easier for you to find them later when you need to update them or add to them.

Start by considering how you want your site to be organized and what natural divisions you see. If you were already planning different tabs or subsections of your site, it makes sense place those files in different folders.

For example, you are creating a personal website and you planned to have these tabs:

  • Family
  • Hobbies
  • Travel
  • Memories
  • Events

You will also be including different kinds of media on the website. You could create folders for each type.

Top Level or Subfolders?

You can choose whether you'll organize your folders so the media for each of the topics lives in a subfolder for that topic, or whether you simply store all photos in a top-level Photos folder, etc. Your choice may depend on how many media files you plan to add.

If you don't name your media files something that will help you identify them later, such as Vacation2016-Maui1.jpg and just leave them what they were named by the camera such as DSCN200915.jpg, it can be useful to put them in a subfolder to help find them later.

of 03

Log in to Your FTP

Here are the steps to create folders via FTP.

Open your FTP program and put in your FTP information. You will need the username and password you use to log in to your hosting service. You will also need the host name of your hosting service. You can get that from your hosting service.

When you log in to your account, you can begin to create folders at the top level of your website. Keep in mind that website folder names will become part of the URL leading to the webpages that are stored there. Name your folders with that in mind as their names will be visible to anybody visiting the pages, as they are part of the URL. The file folder names may also be case-sensitive, so only use capital letters if you understand that. Avoid symbols and use only letters and numbers.

of 03

Creating a Folder Inside a Folder

If you want ​to create a sub-folder inside a folder you just created, double click on the folder name inside the FTP program. The folder will open up. You can add your new folder inside the other folder. Click MkDir again and name your new folder.

After you create all your folders and sub-folders you can start adding your webpages. This is a great way to keep your website organized.

Don't forget that your HTML pages must be looking for the images and other files in the new folders you created. For this reason, it's usually a good idea to make sure your local folders (the ones on your computer) are exactly the same as those you've created on the server via FTP.