Subdirectory basics

A subdirectory, or folder within your Web Hosting account, can be a great way to keep site files organized. We've created a guide to walk you through the basics of subdirectories.


+ Create a subdirectory

  1. Open your File Manager.
  2. Click Create Subdirectory.
  3. Name your subdirectory.
  4. Click Create Subdirectory.

      Tip: Once you've created one subdirectory, you can create a subdirectory within a subdirectory following the same process from within the subdirectory folder.

+ Move files to a subdirectory

  1. Open your File Manager.
  2. Check the boxes to the left of the file or files you want to move.
  3. Click Move.
  4. From the "Subdirectory:" drop down, select the folder you want to move the file(s) to.
  5. Click Move Files.

+ Link files in a subdirectory

To create a link to a file in a subdirectory, you'll need to use the  tag.

If you're linking to a file that's in another directory your code just needs to include the directory name.

Images

Creating a link to an image is just as easy, you just need to swap out the tag for the tag.

You can link an image destination the same way you link words.

  Note: When you're linking files between subdirectories, it's important to remember that both the file names and folder names are case sensitive.

+ Rename or delete subdirectory

When you delete or rename a subdirectory, keep in mind that links or files referencing that folder will need to be updated.

Rename

  1. Open your File Manager.
  2. In the "Edit" column click the icon of the pencil over a folder
  3. Type the new folder name into the "New Name" field.
  4. Click Rename Subdirectory.
    • If you're clicked into the subdirectory, you can also click Rename.

  Note: If you rename a subdirectory, all links and images referencing the old folder name will need to be updated to point to the new subdirectory name.

Delete

  1. Open your File Manager.
  2. In the "Edit" column click the trash can icon.
  3. Click Delete Subdirectory.

  Note: If you delete a subdirectory, all contents contained within that folder will also be deleted.

+ index.html in subdirectories

If you've created subdirectories without an index.html,  you'll simply see a list of files in that folder when you navigate to that portion of your site. If you have content that you would like to show to your subdirectory visitors, you will want to create an index.html in your subdirectory.

  • Was this article helpful?

  • Yes
  • No

Still need help?