SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Member
    Join Date
    May 2002
    Posts
    5
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Wierd Link Phenomena

    When I insert relative links into my web page.
    Apparently when my friends test it out, all the links are broken, because apparently that computer takes the whole URL as the directory...

    so...

    maybe the root url is
    http://www.wehateurls.com
    and the page you're viewing is
    wehateurls.php

    the relative link < a href = " gohere.php " > Go Here! < / a >
    points to

    http://www.wehateurls.com/wehateurls.php/gohere.php

    so the user ends up on the same page.

    what is causing this phenomena.

    i appears to be browser independent. I'm using IE 6. My friends are using IE 6 too, but on different operating systems (Win98/ME - For Me I use XP)

  2. #2
    SitePoint Zealot
    Join Date
    Jun 2002
    Location
    Newcastle, UK
    Posts
    128
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Are you using dreamweaver to link your pages up? If so - that probably explains why it's trying to link into a directory that doesn't exist, maybe you selected the root URL as the root site directory?

    An easy way to solve this, if the site is small enough, is to handcode the links. That way you have ultimate control over the site.

    Another way may be to change the relative links to absolute, and ensure that the link is to the page name only, no directories.

  3. #3
    Grumpy Mole Man Skunk's Avatar
    Join Date
    Jan 2001
    Location
    Lawrence, Kansas
    Posts
    2,066
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Can you give us a URL so we can take a look?

  4. #4
    SitePoint Member
    Join Date
    May 2002
    Posts
    5
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    it only works on some browsers though...

    wplastik.com/wpquiz (a php-based quiz script)

    register & try to click on the links to the quizzes. Depending on your config, the links won't work, although the (X)HTML code looks OK to me.


Bookmarks

Posting Permissions

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