Welcome to WebmasterWorld Guest from 54.226.27.104

Forum Moderators: incrediBILL

Message Too Old, No Replies

Relative Links

Linking UP with a relative link

     

dimo414

3:16 am on Dec 31, 2005 (gmt 0)

5+ Year Member



Now, everyone always raves about relative links, and I can understand why, it makes alot of things easier. I don't use them very often, for one reason, I don't know how to go UP a directory.

A file in the top directory of my site (example.com, lets say) can relatively link to a lower folder, so instead of writing the link as http://www.example.com/photos/file.html I can just write photos/file.html. But if I'm editing photos/file.html, how do I relativley link back to the file in the top directory? And how do I relatively link to a file in a different folder than photos?

Farix

3:54 am on Dec 31, 2005 (gmt 0)

10+ Year Member



./ <- current directory. Handy if you want to link to the index page without to use something like 'index.html'.

../ <- parent directory.

dimo414

4:58 am on Dec 31, 2005 (gmt 0)

5+ Year Member



AH!

Thank you so much!

 

Featured Threads

Hot Threads This Week

Hot Threads This Month