Skip to main content
ElizabethGailLittle
Inspiring
January 7, 2021
Answered

Set up subdomain as new site

  • January 7, 2021
  • 2 replies
  • 1003 views

I have set up a subdomain amd would like to define a new site in Dreamweaver using the subdomain as root.  However, when I try to set it up I get a message saying because the site folder is inside the site root that it will cause synchronization problems.  I certainly don't want that!  Can anyone suggest a way to make this work?

 

Thanks!

This topic has been closed for replies.
Correct answer Nancy OShea

The way in which server folder structures are configured (at least on Apache administered via cPanel) is there is a main folder called public_html where all publicly accessible files are uploaded. This is the server's root directory.

 

If you create a subdomain on the server, a new server folder is created for you inside your server's root directory.  So for example, if your domain is example.com and you create a subdomain called subdomain.example.com, the folder will actually reside at public_html/subdomain/.  This is where subdomain files need to be uploaded.

 

If you continue to have trouble, please contact your hosting provider for assistance.

 

2 replies

Participant
August 14, 2024

I had the same issue. You can think of it as a subdomain site (subfolder) being a part of the main site (root folder), so syncing is made awkward and likely troublesome. I'm pretty new to - actually, a recent returnee who forgot a lot about - web design. But I think you can do it one of two ways, but whichever way, you should host your main site at /home to keep it contained within a subfolder, like the subdomains and just point your domain to that folder.

1. Use one site and one server in DW. So your site root will be the actual root of your server space. You then have your different DW projects as the subfolders (sites) in DW. (I haven't tried this yet)

2. Treat each subdomain and your main /home site as different sites entirely, assign different ftp access for each, so the sites and servers in DW are all isolated, separate entities which do not overlap. I think this is the correct way (?)

Participant
August 14, 2024

P.S. I have now tried #1 and it seems to work perfectly too.

Nancy OShea
Community Expert
Community Expert
January 7, 2021

My site has a CMS with content stored in databases so I NEVER, ever sync files to server.  

 

That said, are you keeping local site folders in separate physical locations?  For example,

C:\MySite1\

C:\MySite2\

Or,

C:\testing_server\default_web_directory\MySite1\

C:\testing_server\default_web_directory\MySite2\

 

Nancy O'Shea— Product User & Community Expert
ElizabethGailLittle
Inspiring
January 7, 2021

Yes, I'm keeping them in separate directories.  What I have is:

websitefolder  and

websitefolder/subdomainfolder

 

I'm trying to set up a site in Dreamweaver with subdomainfolder as the root.  I have set up the subdomain on the server and set up an ftp account.  However, I absolutely cannot get a connection.  I worked with someone from my hosting service for an hour.  Tried lots and lots of things, but could never get a connect.  Cannot connect with username & password.  I assume some of my settings are wrong, but what!!??

My site server definition:

site name: support-remote

Connect using: ftp

ftp address: same as in working site

Port: 21

Username: editor

Password: as set up for working site/support

root directory: public_html/support

Web url: https://www.support.workingsite.com

Test result: 

 

Nancy OShea
Community Expert
Nancy OSheaCommunity ExpertCorrect answer
Community Expert
January 7, 2021

The way in which server folder structures are configured (at least on Apache administered via cPanel) is there is a main folder called public_html where all publicly accessible files are uploaded. This is the server's root directory.

 

If you create a subdomain on the server, a new server folder is created for you inside your server's root directory.  So for example, if your domain is example.com and you create a subdomain called subdomain.example.com, the folder will actually reside at public_html/subdomain/.  This is where subdomain files need to be uploaded.

 

If you continue to have trouble, please contact your hosting provider for assistance.

 

Nancy O'Shea— Product User & Community Expert