If you want to host a website for free in Nepal, Cloudflare Pages is one of the best options in 2026. It’s fast (runs on Cloudflare’s global edge), includes free SSL, supports custom domains, and you can go live in minutes. This guide shows you how to deploy a static site and connect your .com.np or .com domain.
What you can host for free
Cloudflare Pages is designed for static sites — plain HTML/CSS/JS, and sites built with static-site generators (Astro, Hugo, Eleventy, etc.). If your site is pure static files, it’s perfect. If you need a backend server, Pages isn’t the right fit.
Method 1 — Drag-and-drop (fastest, no Git)
- Zip your static site files. Make sure there’s an
index.htmlin the root of the zip. - Go to the Cloudflare dashboard → Workers & Pages → Create application → Pages tab.
- Choose Upload assets.
- Drag and drop your zip file and follow the prompts.
- You’ll get a free
*.pages.devURL immediately.
This is ideal for a first-time site or a one-off upload.
Method 2 — Connect to Git (recommended)
- In Workers & Pages → Create application → Pages → Connect to Git.
- Authorise Cloudflare to access your GitHub/GitLab repository.
- Select your repo and branch.
- Configure build settings. For plain HTML, use Build command
exit 0and set the Output directory to the folder containing your built files (often./ordist/). - Deploy. Cloudflare will build and deploy, and give you a
*.pages.devURL. - Every push to the branch creates a preview deployment you can test before merging to production.
Connecting a custom domain
Once your site is live on *.pages.dev:
- In your Pages project → Custom domains → Set up a custom domain.
- Enter your domain name (e.g.
yourname.com.nporyourname.com). - Follow the prompts. Cloudflare will automatically add the required DNS record if your domain is on Cloudflare. If not, it will show you the record to add at your DNS provider.
For a .com.np domain: after approval on register.com.np, you can update nameservers to Cloudflare or add the CNAME/Alias records shown by Pages. Both work; using Cloudflare nameservers gives you extra benefits.
Common issues and fixes
| Issue | Fix |
|---|---|
| 404 on root URL | Missing index.html at the root of your uploaded files. Add it and redeploy. |
| Custom domain stuck verifying | Check DNS propagation; if using Cloudflare, ensure the proxy status is correct. Also check for zone holds. |
| CSS/JS not loading | Check relative paths. For static sites, use relative paths or ensure your base path is correct. |
| Old content shows | Purge cache or wait a moment; Cloudflare serves cached versions but Pages invalidates on new deploys. |
Tips for a smooth launch
- Test on mobile. Most Nepali traffic is mobile; check responsiveness.
- Add to Google Search Console. After going live, submit your site — see submit your website to Google Search Console.
- Use preview deployments. If using Git, test every change on its preview URL before merging.
- Keep it simple. A fast, clean static site ranks and loads better than an overcomplicated one.
The bottom line
Cloudflare Pages is the cheapest and fastest way to host a static website in Nepal for free. Upload your files (or connect Git), get a *.pages.dev URL, connect your custom domain with free SSL, and you’re live. For a .com.np domain, pair it with this — see how to register a free .com.np domain if you haven’t already.
Fact-checked September 2026 against Cloudflare Pages documentation. Features can change over time; confirm current details. General information.