3 Replies Latest reply on May 7, 2010 2:08 PM by CarlMGregory.work

    FTP's 'Root Directory' is not the 'Root WWW'.


      I am unable to use the testing functionality because my root directory is not my website root.

      I set the root directory for the ftp to /home/user/ as where the root to www.example.com is actually /home/user/public_html/

      I do this because I keep special things, like classes and such, out of the public folder and at /home/user/includes/

      With this setup, if I attempt live view on the index.php within the public_html folder it will attempt to find url http://www.example.com/public_html/index.php

      I could change the root document to /home/user/public_html/ and now when you do a live view it will do the correct url, http://www.example.com/index.php - however with that setup I will no longer be able to interact with that include folder and its contents.


      So, the FTP's root document and the WWW root document are not the same - is there a setting somewhere that helps me accomplish this or is this a Dreamweaver flaw/oversight/fail?



      Carl M. Gregory

        • 1. Re: FTP's 'Root Directory' is not the 'Root WWW'.
          bregent Most Valuable Participant

          Flaw, oversight. Call it what you want, but DW just doesn't handle this well. You probably need to setup two sites with each pointing to different roots. One for working with public files and the other for working above site root.

          1 person found this helpful
          • 2. Re: FTP's 'Root Directory' is not the 'Root WWW'.

            Is it a DW issue? Or the host issue? Different hosts have different ways of showing the root directory. Yours looks like HG.

            I use a subfolder but still have trouble with that host, so I use a V2 folder so it's www.domainname.com/v2/testfilename.html. You have to go into the cpanel and set up a new folder then upload using the expanded view in DW so you can see where the files are going on the remote site. Don't just use "put" command.

            • 3. Re: FTP's 'Root Directory' is not the 'Root WWW'.
              CarlMGregory.work Level 1

              Is it a DW issue?  Absolutly!  It has nothing to do with how the server is setup - I own the server and have the ability to do with it as I please.  I could put my private files in a folder within the public_html, but that's just not good practice.  That's why, on real servers such as Linux, the cgi-bin is not in the public_html directory (who uses cgi-bin anymore anyhow, hah!)


              Oh well, no biggie -- I have never been able to use Live View so I don't know what I'm missing anyhow