directory problems


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: directory problems

  1. #1
    Abdul Guest

    directory problems

    I store my local website on the following dir C:\windows\desktop\web page
    it's quite a big website and can be found at www.totalwise.com my problem is that when you go deep into the website I often make a link back, instead of making the link http://www.totalwise.com/index.html I just write /index.html this works perfectly but my concern is that when I test the site locally to make sure it's working properly, when doing so I find that windows will search for index.html in the C:\ directory, is there an upgrade or software that will fix this problem?
    thanks


    --------------------------------------------------------------------------------

    Please go to
    http://www.desktopdollars.com/default.asp?id=2567
    To earn cash for staying online! and

    http://www.sendmoreinfo.com/SubAffiliate.cfm/718376
    To get paid for receiving e-mail!



  2. #2
    Captain_Kirk Guest

    Re: directory problems

    Your problem is one of relative links. To move up one level, place ../ in front of your file name. To move up multiple levels keep adding ../. To move into a directory in the same one you are in you can use either ../ or just /

    Example, to move from http://www.totalwise.com/adirectory/...ory/index.html to http://www.totalwise.com/index.html then your link would be <ahref="../../../index.html">Index</a>
    "Abdul" <managerofthenet@hotmail.com> wrote in message news:39670fbb@news.devx.com...
    I store my local website on the following dir C:\windows\desktop\web page
    it's quite a big website and can be found at www.totalwise.com my problem is that when you go deep into the website I often make a link back, instead of making the link http://www.totalwise.com/index.html I just write /index.html this works perfectly but my concern is that when I test the site locally to make sure it's working properly, when doing so I find that windows will search for index.html in the C:\ directory, is there an upgrade or software that will fix this problem?
    thanks


    ------------------------------------------------------------------------------

    Please go to
    http://www.desktopdollars.com/default.asp?id=2567
    To earn cash for staying online! and

    http://www.sendmoreinfo.com/SubAffiliate.cfm/718376
    To get paid for receiving e-mail!



  3. #3
    Abdul Guest

    Re: directory problems

    I don't think you understood, I'm having problems with trying to move back to the root directory of a web-site, it works fine on the internet but when I try it out locally it always looks for the page in the dir C:\. Anyway it doesn't matter now as I've consulted a web friend of mine and he told me that there is now way around this problem.
    Thanks anyway
    Captain_Kirk <Captain_Kirk@giantsfan.com> wrote in message news:3969e530$1@news.devx.com...
    Your problem is one of relative links. To move up one level, place ../ in front of your file name. To move up multiple levels keep adding ../. To move into a directory in the same one you are in you can use either ../ or just /

    Example, to move from http://www.totalwise.com/adirectory/...ory/index.html to http://www.totalwise.com/index.html then your link would be <ahref="../../../index.html">Index</a>
    "Abdul" <managerofthenet@hotmail.com> wrote in message news:39670fbb@news.devx.com...
    I store my local website on the following dir C:\windows\desktop\web page
    it's quite a big website and can be found at www.totalwise.com my problem is that when you go deep into the website I often make a link back, instead of making the link http://www.totalwise.com/index.html I just write /index.html this works perfectly but my concern is that when I test the site locally to make sure it's working properly, when doing so I find that windows will search for index.html in the C:\ directory, is there an upgrade or software that will fix this problem?
    thanks





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
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center