[Method] How to get Free Hosting for your website

Contact forms aren't working after converting to a static website. It worked fine in WordPress. Any suggestions? Thanks!
 
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.



thank for the guide but i cant find where are netflify dns?
i
 
thank for the guide but i cant find where are netflify dns?
i
Go to a custom domain, enter your domain, and click verify then it should show the DNS server which you will replace with your current one.
 
Can this cause loss of site in future if they change rules?
I believed the WordPress version of your site is still hosted locally on your machine, this basically guts out the backend and uploads a static version (HTML, CSS, JS) of your site.

Any plugin that requires access to a database to function (via user input) won't work with a static site.

Another host this could work with is firebase's free spark plan.
 
Is it the same as netlify?
It's a static host you can push your files to via the Firebase CLI it doesn't have the same contact form/cms setup as netlify but that doesn't matter with a converted WP site you can use something like formspree for the contact form instead.
 
best tutorial for the small site thanks mate to explain each and everything clearly.
 
best tutorial for the small site thanks mate to explain each and everything clearly.
Yes, indeed it's for small sites.

When your site gets bigger and starts earning then shift it to other hosting or buy their upgraded plan.
 
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
 
Back
Top