How to host Static Website Free

Hosting a website for free on platforms like GitHub, GitLab, Cloudflare Pages, and Google Sites is possible. Here's a brief overview of the steps for each platform:


1. GitHub Pages:

   - Create a new repository on GitHub.

   - Ensure your website files are in the repository, including an index.html file.

   - Go to the repository's Settings tab.

   - Scroll down to the GitHub Pages section.

   - Choose the branch containing your website files (e.g., "main" or "master").

   - Save the settings, and your website will be hosted at username.github.io/repository-name.


2. GitLab Pages:

   - Create a new project on GitLab.

   - Push your website files to the repository, including an index.html file.

   - Go to the project's Settings > Pages section.

   - Choose the branch containing your website files.

   - Save the settings, and your website will be hosted at username.gitlab.io/project-name.


3. Cloudflare Pages:

   - Sign up for a Cloudflare account (if you don't have one).

   - Connect your Cloudflare account to your Git repository (GitHub, GitLab, or Bitbucket).

   - Configure the settings for your project, such as the build command and output directory.

   - Deploy your website, and Cloudflare Pages will handle the rest.

   - You can set up a custom domain through Cloudflare as well.


4. Google Sites:

   - Go to Google Sites (sites.google.com) and sign in with your Google account.

   - Click on the "+ Create" button to start a new site.

   - Choose a template or start from scratch.

   - Customize your website using the editor provided.

   - Once you're ready, click on the "Publish" button.

   - Follow the prompts to set up a URL for your site. You can use a subdomain of sites.google.com or use a custom domain if you have one.

   - How to point my domain to site.google.com ?

Some More Providers:

Each platform may have specific requirements and additional settings you can configure. It's recommended to refer to their documentation for more detailed instructions and options.


Remember that these free hosting platforms may have limitations, such as bandwidth or storage restrictions. If your website grows or requires more advanced features, you may need to consider paid hosting options or self-hosting.