External links

Discussion in 'Programming' started by phitur, May 23, 2008.

  1. #1
    The server root is automatically placed before the URL of links displayed on the page. How to create an external link without the relative server path, for example to get a link to http://www.cnn.com

    Thanks
     
    phitur, May 23, 2008 IP
  2. unitedlocalbands

    unitedlocalbands Well-Known Member

    Messages:
    246
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    128
    #2
    unitedlocalbands, May 23, 2008 IP
  3. websiteideas

    websiteideas Well-Known Member

    Messages:
    1,406
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    130
    #3
    So, you'd want to do this: <a href="http://www.digitalpoint.com">
    Instead of this: <a href="www.digitalpoint.com">
     
    websiteideas, May 24, 2008 IP
  4. phitur

    phitur Peon

    Messages:
    6
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    The current link is already like <a href="www.digitalpoint.com"> but when it's clicked it goes to 127.0.0.1/webroot/http://www/digitalpoint.com the server is added in front as if the http address is a local file.
     
    phitur, May 26, 2008 IP
  5. phitur

    phitur Peon

    Messages:
    6
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    It seems it's the quotes that are around the link value before it's output to the screen...
     
    phitur, May 26, 2008 IP
  6. unitedlocalbands

    unitedlocalbands Well-Known Member

    Messages:
    246
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    128
    #6
    You need to add this part in red <a href="http://www.digitalpoint.com">


    The part in magenta is wrong
     
    unitedlocalbands, May 28, 2008 IP