Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New Coder
    Join Date
    Aug 2005
    Posts
    70
    Thanks
    1
    Thanked 0 Times in 0 Posts

    How to link to file one level above?

    If you have a file which is in the root, and that file links to another file which is located in a folder, so you go to "/folder/file.html".

    Now how would you do it the other way round? So to link to a file which is in the directory above you. I can't use the full url, so is there some symbol which represents "/" but in reverse?

  • #2
    Regular Coder
    Join Date
    Dec 2005
    Location
    Ohio
    Posts
    286
    Thanks
    7
    Thanked 9 Times in 9 Posts
    If the path is: main/folder/file.html and file.html links to a document in "main" you would need to use ../ to access "main."

  • #3
    Senior Coder
    Join Date
    Nov 2003
    Location
    Minneapolis, MN
    Posts
    2,879
    Thanks
    2
    Thanked 65 Times in 56 Posts
    "../" goes one level above. It's UNIX-based folder structure:

    /file.htm --> root directory/file.htm
    ./file.htm --> current directory/file.htm
    ../file.htm --> parent directory/file.htm

    Hope this helps…


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •