SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Evangelist
    Join Date
    May 2007
    Location
    Kent in Uk
    Posts
    538
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    relative links in linux

    hi,

    I have recently started using linux and when i am using links I want to relative rather than absolute links.

    I am linking from my index page. which is here:

    public_html > index.php

    the file i want to link to is here:

    public_html > hostpay > design.html

    Can anyone tell me what the relative link would be?

    thanks

  2. #2
    SitePoint Member
    Join Date
    Aug 2009
    Location
    Aberdeen, Scotland
    Posts
    17
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    When linking to a file, you specify a URL path, not a file path. Therefore the operating system used is irrelevent, it is the same on windows, linux or mac.

    The correct link would be "hostpay/design.html"


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
  •