Skip to main content
Participant
June 4, 2019
Answered

How do I prevent FTP from uploading my DW website in a subfolder of the root directory?

  • June 4, 2019
  • 2 replies
  • 996 views

I update my website occasionally enough that I tend to forget certain details. (And Adobe stops supporting the old ways I set it up, another story). When I updated my creaky old, non-dynamic site, I gave it a new name on my server (first PeasePress 2019, now changed to PeasePress) to distinguish it from the 2018 version. DW instructions say this is OK to do... When I relink to the server in Dreamweaver, and update the required FTP information, I left the Root folder blank. The host's tech support say that either leaving this blank, or /www/www -- I have tried both of these, and the site uploads to a PeasePress subfolder rather than .index.html being in the root directory. I think all my other settings are correct per DW and the web host.  I have tried some of the other suggested (generic or other-site-specific) suggestion in the DW help, including /, /www, various parts of my URL, but these bring up an error message when I click "test" or try to put the files online from DW, whereas blank or /www/www both connect successfully.

In the root there is a copy of the index, which I manually copied there using Fetch, but the graphics links don't link to the Images_Index folders on the root). And it only links to the pages that are on the old website. But it works otherwise.

If instead of typing my regular URL, peasepress.com, I type peasepress.com/PeasePress/index.html I get the content of the new folder, and the links in that index work (for the pages I've uploaded, but not the older pages only on the root folder). How do I convince DW and my server to put the files in the root? What am I missing?

Thanks in advance,

Ben Pease

This topic has been closed for replies.
Correct answer Jon Fritz

It sounds to me like you have a redundant root folder in your site. When you open your Files window, is your site contained in a folder called PeasePress? Something like...

Site - Your site name (C: the location of your local root folder)
     PeasePress
          index.html
          images

          ...the rest of your site files...

If it is, nothing is technically "wrong" online. You've uploaded your site exactly as you have it set up.

If PeasePress is your local site's root folder, you need to change your site definition to turn it into your Local Site Folder as far as DW is concerned.

When you click Put in DW to "Put the entire site" DW moves all of the contents of whatever you have set as the Local Site Folder to the Server Root Directory. If you have an extra folder within what DW sees as your Local Site Folder, that folder will upload as well.

You can leave everything the same, just change the Local Site Folder to be the PeasePress folder under Site > Manage Sites > click your site > Edit. It wll be on the first page of the dialogue window.

2 replies

Jon Fritz
Community Expert
Jon FritzCommunity ExpertCorrect answer
Community Expert
June 4, 2019

It sounds to me like you have a redundant root folder in your site. When you open your Files window, is your site contained in a folder called PeasePress? Something like...

Site - Your site name (C: the location of your local root folder)
     PeasePress
          index.html
          images

          ...the rest of your site files...

If it is, nothing is technically "wrong" online. You've uploaded your site exactly as you have it set up.

If PeasePress is your local site's root folder, you need to change your site definition to turn it into your Local Site Folder as far as DW is concerned.

When you click Put in DW to "Put the entire site" DW moves all of the contents of whatever you have set as the Local Site Folder to the Server Root Directory. If you have an extra folder within what DW sees as your Local Site Folder, that folder will upload as well.

You can leave everything the same, just change the Local Site Folder to be the PeasePress folder under Site > Manage Sites > click your site > Edit. It wll be on the first page of the dialogue window.

Ben PeaseAuthor
Participant
June 4, 2019

That sounds promising. Will look that up and try it.

WolfShade
Legend
June 4, 2019

Are you dragging the PeasePress folder to the target server?  Or are you highlighting the contents of the folder and dragging them?  If the destination folder is left blank, then that should be going to the root of the FTP destination.  But different hosting services have things set up in different ways.  Mine, I have to set destination folder as "/www/html/".

V/r,

^ _ ^

Ben PeaseAuthor
Participant
June 4, 2019

In this recent situation I have been using the straight-up DW "put" method, but in Fetch I've put files directly in their respective folders (or moved them) item by item, rather than moving the folders. Will check this plus Jon Fritz's comment.

Nancy OShea
Community Expert
Community Expert
June 4, 2019

Open your site definition settings.  See screenshot.

File Panel expanded to show Remote and Local side-by-side.  Notice the root folder (public_html) on Remote side but not on the Local side.   Your set-up should be similar.

Nancy O'Shea— Product User & Community Expert