Designing a site that has a sub folder with a sub folder--Need Help

1 replies
  • WEB DESIGN
  • |
Hi,

Quick question.

Is it possible to have a sub folder within another sub folder and link to it. For example I am trying to link a project folder as a sub folder for another project. http://georgepatrickmagic.com/haccwebprojects/html1

The haccwebprojects is the main sub folder and the html1 is the project folder I want to link to. If you click on the link it will give you an error message and for the life of me I cannot figure out what I did wrong. I did use <a href="">html1</a> as the anchor.

Any help would be appreciated.

George
#designing #folder #folderneed #site
  • Profile picture of the author David V
    Your likely getting an error because the url you gave (http://georgepatrickmagic.com/haccwebprojects/html1) is not a sub/sub/ folder, it's just a subfolder.

    This would be a sub/sub/ folder:

    http://georgepatrickmagic.com/haccwebprojects/html1/ <-----

    Notice the "/" on the end. Anything in "/subfolder/" is a directory. Without the "/" on the end, it's a file/page.

    So you might do something like this:

    HTML Code:
    <a href="http://georgepatrickmagic.com/haccwebprojects/html1/">html1</a>
    This assumes you have an html file for that project called "index.html" in the "/html1/" directory.


    IF the file is actually called "html1.html" you would write the link like this:
    HTML Code:
    <a href="http://georgepatrickmagic.com/haccwebprojects/html1/html1.html">html1</a>
    OR

    If it's just a single project page:
    HTML Code:
    <a href="http://georgepatrickmagic.com/haccwebprojects/html1.html">html1</a>
    Unless you have more then one file/page in the "/html1/" directory, you could keep each project in the "/haccwebprojects/" directory like "html1.html"
    {{ DiscussionBoard.errors[9607844].message }}

Trending Topics