Contents
A static site is the simplest thing you can host and the one with the fewest moving parts: no database to break, no plugins to update, and no code executed on the server for each visit. It suits landing pages, small business sites, portfolios, documentation, and the output of static site generators and front-end frameworks after a build.
What a static site needs
| Need | On ArabyHost |
|---|---|
| A server that delivers files with the right types | LiteSpeed |
| HTTPS | Free SSL issued automatically (AutoSSL) |
| Your own domain | Point it to ns1.arabicode.com and ns2.arabicode.com (how) |
| A 404 page, redirects, clean URLs | Rules in an .htaccess file |
| A contact form | A PHP script on the same account; PHP 8.1 to 8.3 is on every hosting plan |
| Email on your domain | Business email with SPF and DKIM set up automatically |
| Backups | Daily JetBackup backups |
| Updates | ZIP upload in the File Manager, or deploy from GitHub |
Which plan fits a static site?
Shared hosting is the right fit for most static sites. It includes LiteSpeed, free SSL, daily backups, email on your domain and PHP for when you need a contact form. You only need a WordPress plan if you’d rather edit content in a dashboard than change files yourself.
AI/Developer plans help if you want to build the site on the server itself over SSH with Node.js, run Claude Code or Codex directly on the site’s files, or add a Node.js or Python API later.
Static site generators: where’s the output?
Build the site on your computer, then upload the contents of the output folder, not the whole project:
| Tool | Build command | Output folder |
|---|---|---|
| Hugo | hugo |
public |
| Jekyll | bundle exec jekyll build |
_site |
| Eleventy | npx @11ty/eleventy |
_site |
| Astro | npm run build |
dist |
| Vite (React or Vue) | npm run build |
dist |
| Next.js static export | npm run build |
out (Next.js hosting) |
Note that Hugo’s public folder is the finished output; it has nothing to do with public_html on the server.
Uploading, in short
- Zip the site so
index.htmlsits at the top of the archive, not inside a folder. - Open the File Manager from the panel, go into
public_html, upload the ZIP and extract it. - Delete any old default page in the folder.
- Open your domain, then turn on the HTTPS redirect as in the force HTTPS guide.
Detailed steps are in the HTML upload guide. If your site lives in a GitHub repository, a .cpanel.yml file can copy it into public_html on every deploy (Git deployment guide).
A useful .htaccess for static sites
ErrorDocument 404 /404.html
# Serve about.html at /about
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}.html -f
RewriteRule ^(.+?)/?$ $1.html [L]
# Let browsers cache images, CSS and JS for a week
<IfModule mod_headers.c>
<FilesMatch "\.(css|js|webp|jpg|png|svg|woff2)$">
Header set Cache-Control "public, max-age=604800"
</FilesMatch>
</IfModule>
LiteSpeed reads this file directly, and changes need no restart.
What every account includes
- Each account isolated in CloudLinux CageFS with its own resource limits, plus Imunify360 security.
- The Araby Panel in Arabic and English, with cPanel one click away.
- The Araby AI assistant in the panel, deploys from Claude or Cursor through Araby MCP, and support in Arabic.
Limits to know
- Disk space and file count (inodes) are limited per plan. Uncompressed images and old build folders eat into both quickly.
- Large videos consume disk and bandwidth; upload them to a video platform and embed them instead.
- Email sent from your contact form is capped per hour per domain.
- Shared hosting runs PHP only. If you need Node.js on the server, that’s on the AI/Developer plans.
On ArabyHost
Pick a shared hosting plan on the pricing page, upload your files and point your domain to ns1.arabicode.com and ns2.arabicode.com; the SSL certificate is issued automatically. If your site is on another host, ask for free migration.
FAQ
Does a static site need a database?
No. Every page is a ready-made HTML file the server sends as is. You only need a database once you add content that changes per user, such as logins or a shop.
How do I add a contact form to a static site?
The simplest way is a small PHP script on the same account that sends the message over SMTP, since every hosting plan includes PHP. Sending is capped per hour per domain, and add spam protection.
How is this different from GitHub Pages?
Both host static sites. Hosting adds email on your domain, PHP for contact forms, redirect control through .htaccess and support in Arabic.
Can I upload a site built with Hugo or Astro?
Yes. Build it on your computer, then upload the contents of the output folder, such as public for Hugo or dist for Astro, to public_html.