Skip to content
Web and HTTP2 min read

What is a static website?

Short answer

A static website is one whose pages are prebuilt files such as HTML, CSS, JavaScript and images, which the server sends unchanged to every visitor without running code or querying a database. That makes it fast, secure and light on resources, but unsuited to content that changes per user.

ArabyHost teamLast updated: ShareWhatsAppXLinkedIn
Contents
  1. How static sites are built
  2. Strengths and limits
  3. Common problems
  4. On ArabyHost

“Static” doesn’t mean a site without motion or interaction. It can have JavaScript, animated menus and forms; the difference is that the server doesn’t build the page on every request, it sends a file that already exists. The opposite is a dynamic website, which generates pages at request time.

How static sites are built

  1. By hand: you write HTML and CSS yourself or start from a template or design tool.
  2. With a static site generator (SSG): tools like Astro, Hugo, Jekyll and Eleventy turn Markdown files and templates into finished HTML pages.
  3. From a JavaScript framework: React or Vue apps after the build step, or Next.js in static export mode, produce a folder of static files.

Example: building a Vite or React project produces a dist folder ready to upload:

npm run build
# dist/index.html
# dist/assets/index-3f2a.js
# dist/assets/index-9c1b.css

Strengths and limits

Strengths Limits
Very fast, because files are ready No content editor unless you add a tool
Small attack surface, no database Forms and search need an external service or server code
Runs on any host and any CDN Every change means rebuilding and re-uploading
Light on resources Not suited to shops or user accounts

Common problems

  • A blank page after uploading a React app: you probably uploaded the project folder instead of dist or build, or the base path is wrong.
  • 404 when refreshing an inner page: single-page apps (SPAs) need a rule that sends every path to index.html.
  • No index.html at the root: the server shows a 403 error or a file listing.

On ArabyHost

You can host a static site on any ArabyHost hosting plan: upload a ZIP to public_html and extract it in the File Manager, or deploy from GitHub with cPanel’s Git Version Control and a .cpanel.yml file. The LiteSpeed web server serves static files directly, and a free SSL certificate is issued automatically. See the HTML upload guide and static site hosting, and for React apps the React deployment guide. If you later need code running on the server, the Developer plans run Node.js and Python.

FAQ

Can a static site have a contact form?

Yes, in two ways: an external form service that emails you the messages, or a small PHP script on your hosting that receives the form and sends it. In the second case a small part of the site becomes dynamic.

Are static sites good for SEO?

Yes, often very good, because pages are fast and the content sits right in the HTML. Good content, titles and descriptions remain the foundation, as on any site.

Is a React app a static website?

After the build step, most React apps produce static files you can upload to any host. If the app relies on server-side rendering (SSR), as some Next.js projects do, it needs Node.js.

Useful? Share it with someone who needs it:WhatsAppXLinkedIn

Read next

Ready to put your idea online?

Fast, isolated hosting, support that understands you, and an AI assistant that fixes problems with you.