Black FridayEnds inGet up to 50% off →
htmlhost.co
multi-pagedeploystatic-sitetutorial

Multi-Page Static Sites: Folders, Links and Shared Assets

htmlhost.co·May 26, 2026·2 min read

One project, several HTML pages

A multi-page static site keeps each page in its own HTML file and shares stylesheets, scripts and images. It is useful for portfolios, business sites and documentation without a server-side application.

Start with a clear folder structure

my-site/
  index.html
  about.html
  services/
    consultation.html
  assets/
    styles.css
    mark.svg

On htmlhost, index.html serves /, about.html maps to /about, and services/consultation.html maps to /services/consultation. Keep assets in the project so they are uploaded with the pages.

Link pages and styles correctly

For navigation on the hosted site, use site-root links:

<nav aria-label="Main">
  <a href="/">Home</a>
  <a href="/about">About</a>
  <a href="/services/consultation">Consultation</a>
</nav>
<link rel="stylesheet" href="/assets/styles.css">

Site-root paths resolve from the website’s root, not the current page’s folder. For files you want to open directly from your computer, relative links such as about.html and ../assets/styles.css are more convenient. Test both the local preview and hosted addresses; opening files from disk is not the same as serving them over HTTP.

Publish from the browser

Import the whole folder or ZIP from the homepage. Open each page in the editor, check the desktop and phone previews, then Publish. Importing alone does not publish. See the beginner walkthrough for a downloadable example.

Publish from the terminal

npm install -g htmlhost-cli
htmlhost login
cd path/to/my-site
htmlhost deploy

Approve sign-in in the browser first. htmlhost deploy deploys the current working directory; htmlhost deploy . is equivalent, and the dot is optional. Directory deployment already includes multiple pages; no --pages flag is required. Keep the generated .htmlhost project link for later updates. The CLI walkthrough covers authentication and remote-change warnings.

Test a nested page directly

Open /services/consultation in a fresh tab rather than reaching it only from the home page. Verify the stylesheet, image and navigation there. A missing ../ or wrong filename case often affects nested pages while leaving the home page looking correct.

Missing pages and changed addresses

If a destination is missing, check that its HTML file was included. When renaming a published page, consider a redirect from its old address so existing links keep working. Check the site’s Redirects settings rather than assuming every old URL will automatically follow a rename.

Limits and backend features

There is no fixed page-count cap in the standard plans, but storage, import and asset-size limits still apply. See current plan limits. Uploading PHP or a server-side application does not run it; use static exports and connect forms or other services explicitly.

Ready to try it yourself?

Import your HTML, check the preview, then publish a link you can share and update.

Start hosting