A static HTML site needs no PHP or database, just files in the right folder on the server. Most post-upload problems come from three things: the files sit inside an extra subfolder, the paths are wrong, or the capitalization doesn’t match. These steps avoid all three.
Before you start
- The site’s files on your computer, with the home page named
index.html. - A hosting account with the domain connected or on its way, as in the connect a domain guide.
- A ZIP tool; Windows and macOS have one built in.
Steps to upload the site
1. Prepare the files
Organize the site roughly like this:
my-site/
├── index.html
├── about.html
├── css/style.css
├── js/main.js
└── images/logo.png
- Use lowercase file names without spaces:
about-us.htmlrather thanAbout Us.html. - Linux servers are case-sensitive, so
Logo.PNGis notlogo.png. - Use relative links such as
href="css/style.css", never paths from your computer likefile:///C:/Users/....
2. Zip the files
Select the files and folders inside the site folder, not the folder itself, so index.html is at the top level of the archive:
- Windows: select all, right-click » Send to » Compressed (zipped) folder.
- macOS: select all, right-click » Compress.
- Terminal:
cd my-site && zip -r ../site.zip .
3. Open File Manager
Open cPanel, go to Files » File Manager, and open public_html, the document root of the main domain. For an addon domain, open the folder you set when adding it under Domains.
4. Upload and extract
- Click Upload in the top toolbar, choose
site.zip, and wait for the bar to reach 100%. - Click Go Back to “/home/…/public_html”.
- Right-click the file, choose Extract, confirm the path is
/public_html, then Extract Files. - Delete
site.ziponce the files are there.
5. Remove old default pages
An old index.php or default.html in the folder may be served instead of your page, because the server reads index files in a set order. Delete it or move it to a backup folder.
6. Check permissions
Permissions should usually be 644 for files and 755 for folders. Select an item and click Permissions to change them, or use the chmod calculator to make sense of the numbers. Never use 777.
7. Open the site and turn on HTTPS
Open your domain in a browser. The SSL certificate is issued once the domain points to the server, and you can follow it under Security » SSL/TLS Status. To send every visitor to HTTPS, create a .htaccess file in public_html (enable Show Hidden Files under Settings to see it) containing:
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
8. Add a 404 page and extensionless URLs (optional)
ErrorDocument 404 /404.html
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}.html -f
RewriteRule ^(.*)$ $1.html [L]
With these rules example.com/about serves about.html, and your 404.html appears for links that don’t exist.
9. Update the site later
Keep the copy on your computer as the master and make changes there first. When updating, upload only the changed files to the same folder and choose Overwrite existing files if File Manager asks. If many files changed, zip them again and extract over the old ones. Once changes become frequent, move the site into a Git repository and deploy from it, so every change is recorded and you can roll back to any earlier version.
Troubleshooting
- 403 Forbidden: there’s no
index.htmldirectly inpublic_html; often the files are inpublic_html/my-site/. Move them up one level with Move. Details in the 403 error guide. - 404 on some pages or images: capitalization mismatch or a wrong path. See the 404 error guide.
- The page has no styling: press
F12, open the Network tab to see which CSS or JS file wasn’t found, then fix its path. - The old version still shows: clear the browser cache with
Ctrl+F5, or try a private window. - “Not secure” warning: the certificate hasn’t been issued yet, or the page loads images or files over
http://. Switch them tohttps://or relative links. - A large ZIP fails to upload: split it into several archives or use FTP, as in the File Manager and FTP guide.
On ArabyHost
Any ArabyHost shared hosting plan is enough for static sites, served by LiteSpeed. Open cPanel with one click from the Araby Panel and upload a ZIP as above, or deploy from GitHub through Git Version Control and a .cpanel.yml file so the site updates with every change to the repository. A free SSL certificate is issued automatically through AutoSSL once the domain is connected, and daily JetBackup backups let you restore an earlier version. If an error appears and you don’t know why, the Araby AI assistant in the panel reads the error log and explains the fix.
FAQ
Where do I put my website files on the hosting?
In `public_html` for the main domain, or in the addon domain's folder you chose when adding it in cPanel. `index.html` must sit directly inside that folder.
Do I need a database for an HTML site?
No. An HTML, CSS and JavaScript site needs neither PHP nor a database, just a web server that serves the files.
Why does my site show without styling after uploading?
Usually the CSS path is wrong: either a path from your computer like `C:\Users\...`, or the file name's capitalization doesn't match the link. Use relative links and lowercase names.