xampp localhost and links

Discussion in 'Site & Server Administration' started by Colbyt, Aug 21, 2007.

  1. #1
    I just did a clean install of xampp and all went well. I should also say first install ever (like you can't figure that out from the question).

    I copied a site I am working on over to C:\xampp\htdocs\domaindirectory where domaindirectory is the name I gave the folder for the site.

    My links were working on a real server, public_html/directory took me to the right place. On localhost it wants to take me to localhost/directory name not localhost/domaindirectory/directory.

    What am I doing wrong? Advice or links, they are both good.
     
    Colbyt, Aug 21, 2007 IP
  2. Kuldeep1952

    Kuldeep1952 Active Member

    Messages:
    290
    Likes Received:
    18
    Best Answers:
    0
    Trophy Points:
    60
    #2
    Your Links in the pages are probably "/directory" and not "directory".
    The URL "/" in your localhost is C:\xampp\htdocs\ and not C:\xampp\htdocs\domaindirectory
     
    Kuldeep1952, Aug 22, 2007 IP
    Colbyt likes this.