www.webdeveloper.com
Results 1 to 4 of 4

Thread: all html a href links are linking interally

  1. #1
    Join Date
    Aug 2013
    Posts
    1

    Angry all html a href links are linking interally

    so for no apparent reason all my a href links are now linking internally, i.e when trying to link it does to a directory on my pc / ftp server rather then the external site. anyone know what could be causing this? its really really irritating me.

    http://www.blackaddergaming.com/newsite/index.html

    on that page click the youtube tab to see what i mean, instead of linking to the youtube channel it links to http://www.blackaddergaming.com/news...ackaddergaming which ofcourse 404s.

    please help.

  2. #2
    Join Date
    Oct 2011
    Posts
    9
    try adding http:// to it.

    example:
    http://www.youtube.com/blackaddergaming

  3. #3
    Join Date
    Aug 2013
    Location
    Salisbury, Maryland
    Posts
    2
    You're giving it a relative link instead of an absolute one...if you don't tell it to use the HTTP protocol when looking for an anchor, it is going to assume you want to find it locally (Apache will locate this using the Linux directory structure instead of HTTP).

    Long story short - if you want to link to another site, make sure you use http(s)

  4. #4
    Join Date
    May 2005
    Location
    Gold Coast (MS)
    Posts
    2,198
    See: Absolute and Relative Paths (Using URLs Effectively) - http://webdesign.about.com/od/beginn.../aa040502a.htm

    CSS Errors Ignore any properly formed CSS 3 rules that were flagged.

    HTML Errors

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles