Absolute Links Vs Relative Links

Discussion in 'Google' started by Johnletton, Aug 2, 2011.

  1. #1
    Define Absolute Links Vs Relative Links and where these are used?
     
    Johnletton, Aug 2, 2011 IP
  2. kajol

    kajol Well-Known Member

    Messages:
    523
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    108
    #2
    relative links are start from your base path, for example:

    <img src="/images/somefile.gif">
    
    Code (markup):
    Absolute path is full path with domain

    <img src="http://www.mydomain.com/images/somefile.gif">
    Code (markup):
     
    kajol, Aug 2, 2011 IP
  3. steveeyes

    steveeyes Well-Known Member

    Messages:
    420
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    103
    #3
    Where are they used? You can use them where you want. It is a matter of preference.
     
    steveeyes, Aug 2, 2011 IP
  4. techcruser

    techcruser Peon

    Messages:
    17
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Absolute links are like this : http : // abc.com / index.php
    Relative links are like this: / index.php

    If you are linking to some content within your own domain,, you will use relative links.. while linking to contents on other domain you use absolute links..
     
    techcruser, Aug 3, 2011 IP
  5. pemburudomain

    pemburudomain Greenhorn

    Messages:
    83
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    16
    #5
    Relative links are better , you maybe want to copy site db or change domain of site , then if you use absolute , it will not appear yournewdomain.tld but yourcurrentdomain.tld , just suggestion :)
     
    pemburudomain, Aug 3, 2011 IP
  6. Johnletton

    Johnletton Member

    Messages:
    104
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    26
    #6
    Thanks but tell some more examples where it is used?
     
    Johnletton, Aug 4, 2011 IP
  7. WishBone

    WishBone Peon

    Messages:
    2,566
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Not so popular to me but looking at those examples, they are just used for coding and making links to a page or object.

    <img src="/images/somefile.gif"> - he didn't define the home page for the image is in the your own sub-folder (uploaded on your web hosting) and is applicable in coding your own/hosting site only.

    <img src="http://www.mydomain.com/images/somefile.gif"> - though it an be used if the image is in your sub-folder, it is normally used to call the image uploaded on not on your site or else where in the internet.
     
    WishBone, Aug 4, 2011 IP
  8. flightsunite

    flightsunite Peon

    Messages:
    177
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #8
    Is Google consider any defference between both of back links?
     
    flightsunite, Aug 5, 2011 IP
  9. Sphinks

    Sphinks Active Member

    Messages:
    1,102
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    78
    #9
    No, Google won't make any difference between those two
     
    Sphinks, Aug 5, 2011 IP
  10. Ayansarei

    Ayansarei Peon

    Messages:
    146
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #10
    Yes,
    Absolute:http : // domain / pagename
    Relevant:/Page name
    Of course google like Relevant links
     
    Ayansarei, Aug 5, 2011 IP