Skip to main content
Known Participant
January 6, 2023
Question

1 host, multiple domains, 1 css folder

  • January 6, 2023
  • 2 replies
  • 623 views

I am making great strides with Bootstrap thanks to all of the support I've received here. My question this time is that I have multiple domains under one hosting pkg., all in the public_html folder. I have one css folder, also in public_html. Does each domain need it's own css folder? I'm unfamiliar with multiple domains in one hosting packages. Also, I want to create another bootstrap doc for one of the other domains, and I need to specify whether to create a new css, or use an existing one. tia

    This topic has been closed for replies.

    2 replies

    Nancy OShea
    Community Expert
    Community Expert
    January 6, 2023

    Multiple domains = multiple site definitions, one for each domain.

     

    Likewise, each domain should have it's own Root Directory and unique IP address.  Ask your hosting provider about that.

     

    If you wish to use the same assets across multiple domains, I highly recommend putting them on a content delivery network (CDN). 

     

    The advantage of a CDN is that it is cross locationed in multiple geographic regions which makes asset delivery faster and speeds up the internet for everyone.

     

    Cloudflare is one CDN provider but there are others like Amazon CloudFront, Google Cloud CDN, Fastly, Akamai, Azure CDN, etc...  You can read more about the benefits of using a CDN  at  https://www.cloudflare.com/learning/cdn/cdn-benefits/

     

    Hope that helps.

     

    Nancy O'Shea— Product User & Community Expert
    Known Participant
    January 6, 2023

    I should have said 1 hosting plan instead of 1 host. Sorry. What I'm not familiar with is multiple domains, same server, ip address, etc. My photos shows the file structure with all domains residing in public_html, with only one css folder and one js folder. I have 7 different index.html files. What can go wrong, right?

    BenPleysier
    Community Expert
    Community Expert
    January 6, 2023
    quote

    What can go wrong, right?

    By @Haybound23605476


    The best answer can be had by trying it.

    Wappler is the DMXzone-made Dreamweaver replacement and includes the best of their powerful extensions, as well as much more!
    BenPleysier
    Community Expert
    Community Expert
    January 6, 2023

    Each domain is a separate web site and should be treated independent of each other.

     

    In other words, you do need a style sheet for each site.

    Wappler is the DMXzone-made Dreamweaver replacement and includes the best of their powerful extensions, as well as much more!