Smile Corp डॉक्स
हिन्दी
Smile Hosting
इस पेज का अभी हिन्दी में अनुवाद नहीं हुआ है, इसलिए यह अंग्रेज़ी में दिखाया जा रहा है।

Deploy a static site

Upload HTML, CSS and JavaScript and put it live - no server code needed.

13 सित॰ 2026 को अपडेट किया गया2 मिनट में पढ़ें

A static site is just files: HTML pages, CSS, JavaScript and images. Smile Hosting serves them for you, so there’s nothing to install and no app to keep running.

Put it live

  1. Create a website with the Static framework.
  2. Open the Source tab and upload your files. Your home page must be called index.html.
  3. Press Deploy. Your site is live at its address straight away.

Changed or added files? Press Redeploy to put the new version live.

सुझाव

A new static site starts with a simple starter page. Replace its index.html with your own, or delete the starter files before you upload yours.

How your files become pages

File in Source Address
index.html my-site.smilehosting.tech/
about.html my-site.smilehosting.tech/about
blog/index.html my-site.smilehosting.tech/blog
images/logo.png my-site.smilehosting.tech/images/logo.png
  • Links don’t need .html on the end - /about finds about.html.
  • Add a 404.html and it’s shown whenever someone visits a page that doesn’t exist.
  • Files and folders starting with a dot, such as .env or .git, are never served, and neither are node_modules or Python venv folders. Even so, don’t upload passwords or tokens to a website.

Made with a tool like Vite or React?

Build the site on your computer first - usually with npm run build - and upload what it produces, which is normally a dist or build folder.

If your index.html ends up inside a folder rather than at the top:

  1. Go to Settings and find Build & Output Settings.
  2. Set Output Directory to that folder, for example dist.
  3. Click Save, then Redeploy.

Use paths from your site’s root, like /images/logo.png, or relative to the page, like images/logo.png. Paths from your own computer, such as C:\Users\...\logo.png, only work on your computer.

Filenames are matched exactly, so Logo.PNG and logo.png are different files. Keep them lowercase to be safe.