absolute or relative url ?

Discussion in 'Google' started by rvnhanh, Jan 7, 2010.

  1. #1
    Between absolute and relative urls ? Which is better ?

    Thanks for advising
     
    rvnhanh, Jan 7, 2010 IP
  2. Abhik

    Abhik ..:: The ONE ::..

    Messages:
    11,337
    Likes Received:
    606
    Best Answers:
    0
    Trophy Points:
    410
    Digital Goods:
    2
    #2
    In terms of coding, relative urls are better. It helps to increase page load speed.
    But, if you want to hotlink something from other sites, you must use absolute urls.

    Since you have posted this in Google sections, you might wanna know what's the impact of this on Google.
    Well, when you use third party absolute URL on your site (to hotlink a image or a file), it'll be counted as a outgoing link.
     
    Abhik, Jan 7, 2010 IP
  3. dippydidos

    dippydidos Peon

    Messages:
    55
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    dippydidos, Jan 8, 2010 IP
  4. mrxinbollywood

    mrxinbollywood Peon

    Messages:
    33
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    what is absolute and relative urls? Can you please explain?
     
    mrxinbollywood, Jan 8, 2010 IP
  5. Sukijus

    Sukijus Peon

    Messages:
    171
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    An absolute link defines the location of the document absolutely including the protocol to use to get the document, the server to get it from, the directory it is located in, and the name of the document itself.

    A relative link on the other hand takes advantage of the fact that the server knows where the current document is. Thus, if you want to link to another document in the same directory, you don't need to write out the full URL. All you need to use is the name of the file.
    ;)
     
    Sukijus, Jan 8, 2010 IP
  6. abhijit

    abhijit Notable Member

    Messages:
    4,094
    Likes Received:
    30
    Best Answers:
    0
    Trophy Points:
    215
    #6
    use only relative urls for all pages of site and link your home page with the absolute url...........don't use index.html...............use your website url to link with your home page..........
     
    abhijit, Jan 8, 2010 IP
  7. praet123

    praet123 Guest

    Messages:
    56
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    I have to use absolute URL as whenever I use relative urls google can't find the pages.
    For example I used to use ../page.html and in google webmaster tools I had page not found, so I had to change all links to absolute and now it's www.website/page.html.
    Can anybody explain why it's happening? I have visited some authrity websites and they used absolute urls.
     
    praet123, Jan 8, 2010 IP
  8. claries

    claries Peon

    Messages:
    32
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #8
    Please clarify the question in more detail
     
    claries, Jan 9, 2010 IP
  9. Lex350

    Lex350 Notable Member

    Messages:
    1,889
    Likes Received:
    31
    Best Answers:
    0
    Trophy Points:
    215
    #9
    You would be better sticking with absolute urls. You start changing things and it gets messy fast.
     
    Lex350, Jan 9, 2010 IP
  10. webcosmo

    webcosmo Notable Member

    Messages:
    5,840
    Likes Received:
    153
    Best Answers:
    2
    Trophy Points:
    255
    #10
    It really doesnt make any difference. i have sites with both absolute and relative urls. both types of sites rank just fine on search engines.
     
    webcosmo, Jan 9, 2010 IP
  11. buldozerceto

    buldozerceto Active Member

    Messages:
    1,137
    Likes Received:
    43
    Best Answers:
    0
    Trophy Points:
    88
    #11
    absolute urls are better IMO .
     
    buldozerceto, Jan 9, 2010 IP
  12. seomaster77

    seomaster77 Peon

    Messages:
    38
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #12
    On SEO terms, it doesn't make difference if you have Absolute or Relative URL, until you are pointing to the right page

    Relative URL's give you the freedom of code changes, in case you change your domain name etc...
     
    seomaster77, Jan 9, 2010 IP
  13. Nemanja

    Nemanja Well-Known Member

    Messages:
    523
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    123
    #13
    As seo concerns either..
    But I always use absolute urls, because if you move some parts of site or pictures or anithing on some other place, you dont have to change anything, but if you use relative urls, you are in some serious problems...
     
    Nemanja, Jan 10, 2010 IP
  14. manny07

    manny07 Peon

    Messages:
    438
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #14
    I will go absolute url.
     
    manny07, Jan 11, 2010 IP