Should one Use Relative or Absolute Links

Discussion in 'HTML & Website Design' started by Anduril66, Jan 9, 2008.

  1. #1
    Is it a better web design practice to use absolute or relative links and why?
     
    Anduril66, Jan 9, 2008 IP
  2. jgjg

    jgjg Peon

    Messages:
    595
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I like absolute links, especially in navigation. The reason is, I can use an include file and include the navigation in different folders on the web site, and the links will still work properly ;)
     
    jgjg, Jan 10, 2008 IP
  3. wierdo

    wierdo Well-Known Member

    Messages:
    1,646
    Likes Received:
    45
    Best Answers:
    0
    Trophy Points:
    140
    #3
    It depnds. As jgjg said, on my top_content.php and bottom_content.php files, I use absolute links, but on the content pages I use relative links sometimes. I just got used to using absolute links.
     
    wierdo, Jan 10, 2008 IP
  4. jmf000

    jmf000 Peon

    Messages:
    46
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Simple rule: use relative uri's wherever you can.
    There are few reasons why it is so but i'm lazy to explain.
     
    jmf000, Jan 10, 2008 IP
  5. Stomme poes

    Stomme poes Peon

    Messages:
    3,195
    Likes Received:
    136
    Best Answers:
    0
    Trophy Points:
    0
    #5
    faster loading, better caching?
     
    Stomme poes, Jan 10, 2008 IP