www.webdeveloper.com
Results 1 to 3 of 3

Thread: Relative links question

  1. #1
    Join Date
    Dec 2010
    Posts
    10

    Talking Relative links question

    I found this example on this site http://bit.ly/zXAkj

    But it's not complete...

    The example:

    Relative Path URLs

    Relative paths change depending upon what page the links are located on. There are several rules to creating a link using the relative path:

    * links in the same directory as the page have no path information listed
    filename
    * sub-directories are listed without any preceding slashes
    weekly/filename
    * links up one directory are listed as
    ../filename

    --------------------------------------

    I want to do the next:

    lets say i have a folder named "boom" in that folder i have two more folders "fol1" and "fol2"

    I want to create a pass from a file in "fol1" to the file in "fol2"

    How do i write that pass?

    i've tried "fol2/file.zip" and "boom/fol2/file.zip" both didn't work.

    Thanks.

  2. #2
    Join Date
    Aug 2006
    Posts
    1,886
    To use a relative link, you'd use: "../fol2/file.zip"

    Dave

  3. #3
    Join Date
    Dec 2010
    Posts
    10
    Worked like magic! Thanks.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

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



Recent Articles