user928919
user928919

Reputation: 51

How to host a single HTML page in Netlify?

I want to host a website online. Mine is a simple html file with some external CSS and javascript. Could you please let me know how can I host this HTML page as a website in Netlify? As Netlify suggest I tried providing relevant GITHUB links, but still this gives me Page not found error because of incorrect link Do I have any other free hosting sites where I can get this done?

Upvotes: 4

Views: 9818

Answers (2)

Jekayode
Jekayode

Reputation: 1622

You have twio options to deploy to Netlify,

You can use version control with GitHub or Netlify Drop

To use GitHub, follow this instruction: https://www.netlify.com/blog/2016/10/27/a-step-by-step-guide-deploying-a-static-site-or-single-page-app/

With drop, you will only need to drag and drop a folder with your site’s HTML, CSS, and JS files using their interface, and Netlify will publish it on your website.

To use Drop, follow this link: https://app.netlify.com/drop

Upvotes: 7

ShinaBR2
ShinaBR2

Reputation: 2705

Netlify is a good solution for host static files, but it need a git repository.

Because you can't touch into Netlify server to upload your file, Netlify is not your own VPS.

That's why everything you need is:

  • Create a git repository (github/gitlab/etc)
  • Connect that repository to Netlify.
  • Deploy

That's all!

Upvotes: 3

Related Questions