Noob HTML question.

Discussion in 'HTML & Website Design' started by husla3x, Sep 27, 2009.

  1. #1
    I have a html page that is in a subdomain folder and it keeps adding the subdomain to all the links.

    Example: httx://www.random.com becomes httx://www.subbie.random.com

    I want to remove this and forgot for the line I should be looking for in the code? Went over a few times on a few pages and nothing seems familiar. I have done this before but never have un-done it. I have a few pages in the subdomain that are coming alive which sucks because they are forcing the links to lead to "not found" pages. Thanks in advance buds.
     
    husla3x, Sep 27, 2009 IP
  2. Nix Wanning

    Nix Wanning Peon

    Messages:
    152
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Heya, could you copy and paste the code for that html page?

    My first thought is that you have relative linking... i.e.

    <a href="index.html">Link</a>
    Code (markup):
    instead of

    <a href="http://www.random.com/index.html">Link</a>
    Code (markup):
     
    Nix Wanning, Sep 27, 2009 IP
  3. chetandhiman

    chetandhiman Member

    Messages:
    42
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    41
    #3
    Most likely this is the cause of this problem. Use complete address in this format
    <a href="http://www.random.com/index.html">Link</a> and the problem will be gone.
     
    chetandhiman, Sep 27, 2009 IP
  4. husla3x

    husla3x Well-Known Member

    Messages:
    640
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    103
    #4
    Thanks. I need to re-check that. let you guys know and thanks really much :)
     
    husla3x, Sep 28, 2009 IP