HOSTING
Website Hosting: What Happens Between a Folder and a URL
Learn what website hosting does, how DNS and HTTPS fit together, and what to test before sharing a new public site.
TL;DR: Website hosting makes files or an application available over HTTP. If your pages are already generated, you can start with static hosting. Check the site and its asset paths over HTTPS before you ask people to use the address.
Introduction
Opening index.html on your computer can tell you whether a page renders. It cannot tell you what someone will see after typing a public URL. Website hosting bridges the gap: the host needs a complete release, a hostname it recognises, and a way to serve the right file for each request.
These are separable responsibilities. That matters when the first request fails: an error in DNS does not require rebuilding your CSS, and a broken CSS reference does not require changing nameservers. This guide gives you a way to tell the difference.
What is website hosting?
Website hosting is the service that responds to browser requests with website content. A static host looks up an existing file; an application host can run server code for each request and generate a response. A static bundle can still contain interactive JavaScript and use external APIs in the browser, subject to those APIs' rules.
A domain name is an address you control or are assigned. DNS maps it to service infrastructure, and TLS lets a browser authenticate the hostname and encrypt the connection. Your files are a separate concern. Many platforms offer all three in one dashboard, but each can become ready at a different time.
Why the distinction matters
- Ownership: Keep your domain account recoverable and your source in a repository or offline backup. Neither a registrar login nor a published URL is a copy of the source.
- Runtime: A contact form action, a private API key and user authentication require a service that can handle the request. Shipping interface JavaScript alone does not make these features exist.
- Recovery: A versioned release gives you a known result to restore. A date-stamped ZIP with a matching commit provides more evidence than a folder named “final”.
How hosting works
The browser finds the address
When someone requests https://www.example.com/guide, the browser resolves the hostname and negotiates TLS. The host receives /guide as the path. A static host might look for guide/index.html, return a generated guide.html, or return a 404. Know which rule you chose, especially when copying links.
The host returns the release
The first successful response is usually HTML. It can reference stylesheets, fonts and scripts, each of which triggers a separate request. If a stylesheet lives at /assets/site.css, it needs to be inside the published output and accessible under that exact capitalization. Test the Network panel for failed or unexpected responses; an HTML response to a request for a JavaScript module can look like a blank page.
The next update preserves continuity
Good release workflows upload into an unpublished version before switching the live pointer. Visitors see either the previous approved version or the newly chosen version. Keep a previous artifact if you need to reverse a release quickly; rolling back a static artifact does not reverse data changes in any external API the site uses.
| Hosting style | Suitable when | Check before choosing |
|---|---|---|
| Static files | Your generator or editor can produce complete pages and assets | File limits, redirects, 404 behavior and rollback |
| Application runtime | The origin needs to calculate a response, protect credentials or modify data | Lifecycle, observability, network access and backups |
Practical steps for a first release
- Open a local HTTP preview. Visit a nested page and refresh it directly.
- Confirm your output contains
index.html, referenced assets, and a useful 404 page where your host supports one. - Publish to a test hostname and open it in a private browser window. Check a phone, a deep URL and an unchanged image as well as the homepage.
- Record the release ID and source commit, then share the public address after verifying HTTPS and content together.
Common mistakes
- Changing DNS when the same hostname already serves your HTML correctly.
- Including development environment files or private notes in the publication folder.
- Treating a successful build log as proof that a particular public domain responds.
Frequently asked questions
Do I need to buy a domain to start? A host-provided subdomain is enough for testing and early publishing. You can add a domain you control later if your host supports it.
Can static hosting run a React site? Yes, when the build produces files that work in the browser. A React app that needs server rendering or server routes needs a compatible runtime.
Is DNS the same as hosting? DNS directs a hostname to infrastructure. Hosting responds with the files or application results.
What should I save for a rollback? Save the source revision, build settings, and successful output. That combination helps you restore the result without relying on changed dependencies or branches.
What is the most useful post-publish check? Open a public deep link over HTTPS in a clean browser and confirm the page, assets and one important action work.
Conclusion
Separate the address, HTTPS and release when you plan a launch. Start with how KairoBase publishes a site, then use the static hosting guide to check that your project fits. For protocol background, see MDN’s introduction to how the web works.