SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Zealot
    Join Date
    Dec 1999
    Location
    Highlands Ranch, CO
    Posts
    193
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Ok, I am using a virtual include on all of my pages. I can't remember if there is a way to put links in this included file, with-out hard coding the whole URL.

    For example you are at: www.yoursite.com (the left column 'SSI' contains links to www.yoursite.com/folder/news/other.htm & www.yoursite.com/other/news.htm)....

    Is there a way to get to the root directory from anywhere in the site? It will be something similar to: ../

    I want it so that if I am at www.yoursite.com/folder1/folder2/folder3/folder4/folder5/index.htm then I can still use the same links in the SSI column.

    Does this make sense? Please help me out.

    Thanks,

    Chad


  2. #2
    SitePoint Wizard westmich's Avatar
    Join Date
    Mar 2000
    Location
    Muskegon, MI
    Posts
    2,328
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    This might be better suited to the programming discussion forum, Perl JavaScript...

    ------------------
    IMHO,
    Westmich
    ***********************
    Your opportunity on the web is now!
    westmichiganweb.com

  3. #3
    Fluffy Kitten Programmer~ Elledan's Avatar
    Join Date
    Jun 2000
    Location
    Netherlands
    Posts
    1,356
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    There is 1 way: start every link in the include with /

    /dir1/page.shtml

    This will make the browser start looking at the root directory, so it should work.

    ------------------
    Elledan Dunedain
    http://emudreams.tsx.org
    TriAxis (Still Alpha!)
    Everyone has a destiny in life. Some just never reach it

  4. #4
    SitePoint Zealot
    Join Date
    Dec 1999
    Location
    Highlands Ranch, CO
    Posts
    193
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Elledan,

    I knew there was a way! Thanks!

    Chad


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
  •