[Method] How to get Free Hosting for your website

Thanks for sharing this, but I guess you know this sentence below: there is no good product without any charges.
So, I will pass it now
That’s not true. You could do the exact same thing using cloudflare pages as well (the steps might differ). CF pages can handle huge traffic, all for free (that too with its usual edge caching stuffs). The only catch is that there is no server. Your site needs to be completely static, or have an external api server. I know this first hands. I have had such sites hosted on cf pages before which received good amount of traffic in a short period of time. There was no consequence at all. That site was a react js based one, but it’s technically the same.

ps, another option other than cf pages is digital ocean’s new static site service (forgot what they call it). You can have upto 3 sites for free.
 
Last edited:
Is there going to be any issue integrating AdSense or Ezoic ads? (since it's static)
 
Thanks for the share! I will definitely look to diversify my hosting options.
 
I'll try this later and will get myself a free hosting then. :)
 
Great share and will try it. Thanks for your information
 
Been there done tha, Just a little incoming traffic and your ISP will ban your account without any delay,
 
Thanks for thre tutorial
Hi,

I will be pretty straightforward about how you can get free hosting with Netlify for your website.

First of all, you need to install WordPress locally on your computer.

I would recommend bitnami for this

https://bitnami.com/stack/wordpress

Download and install WordPress. (It will take a couple of minutes to install.)

After that, you need 3 plugins.

  1. WP2Static
  2. WP2Static Add-on: Netlify Deployment
  3. WP2Static Add-on: Zip Deployment
You can download the plugins from the below link since they are not available on WordPress by default.

https://wp2static.com/download/

They will send you the download link in your email.

After downloading, upload and activate each plugin on your locally hosted website.

Now go to WP2static > addons, And enabled zip deployment.
View attachment 229440

Now go to run and generate static site.

After generating the static site go back to addons. Now click on zip deployment confirguration button.

Download the zip file.
View attachment 229441


Now head to the https://www.netlify.com/. Create an account there.


Now drag and drop your zip file here
View attachment 229450


When its done it will show published like this.

View attachment 229443

Now go to the site setting.

And copy your Site ID.

View attachment 229444

Now head back to your localhost domain.

Wp2static < Addons < click on netilfy deployment configuration button.

Paste your site ID here.
View attachment 229445

Now we need personal access token too.

Now go back to netlify , click on user setting.

View attachment 229446

Click on applications from the left side bar. And click on personal access token.

View attachment 229447

Give whatever name you want. And generate token.

View attachment 229448

Copy that token and paste it below the Site ID.

Click save options.

Now go to wpstatic options and paste your netlify URL on Deployment URL.

Enabled Netlify Deployment from the addons.

Now go to run and generate static site.

Now deployment work is completed.

Now Set up your custom domain.

Verify your domain by adding Netlify DNS.

Then replace the netlify URL from the options with your domain.

And run again.

It would work.

Now you just have to run generate static site every time you make changes on your local host.

It is recommended not to use Elementor or any heavy plugin because it can create some technical issues.
thanks for the tutorial. one quick qn is there a way to change the format of the post URL to include the custom domain and not netlify.app
 
Thanks for thre tutorial

thanks for the tutorial. one quick qn is there a way to change the format of the post URL to include the custom domain and not netlify.app
There's a option to set the custom domain from the dashboard.
 
Back
Top