Heard of this factor referred to as “static WordPress internet hosting”? Questioning whether or not going static is true on your website?
Whether or not you haven’t any concept what static WordPress internet hosting is otherwise you already know the fundamentals, this submit will assist fill within the particulars, in addition to assist you determine whether or not or not static internet hosting is true on your website, and how one can get began.
Let’s dive in…
What’s Static WordPress Internet hosting? Defined in Extra Element
Let’s begin the start (with an excellent simplified model of how WordPress works)…
How Your WordPress Web site Works
WordPress is written in PHP. When somebody visits your server, your net server executes that PHP and queries your website’s database to dynamically put collectively the HTML content material to ship to the customer’s browser.
That dynamic nature is useful as a result of it means, for instance, that your WooCommerce website’s server can ship a cart web page that incorporates the precise objects an individual added to their cart.
Nevertheless, that course of can be useful resource intensive as a result of your server must dynamically “construct” the content material and question your database for each single go to.
WordPress web page caching is a well-liked efficiency trick that “caches” the static HTML (the tip results of the dynamic course of). Nevertheless, even with a caching plugin, your WordPress website continues to be proper there behind the cached model of the file.
Right here’s The place Static WordPress Internet hosting Comes In…
Static WordPress internet hosting takes issues one step additional by utterly eradicating the WordPress backend.
Primarily, you’ll add your content material and construct your website utilizing WordPress. Then, when you’ve completed, you’ll generate a 100% static model of your website and deploy it. No extra PHP. No extra database. This picture from Strattic does a superb job of exhibiting the distinction between common internet hosting and the static strategy:
Article continues after this block
You may additionally like these articles
The way in which most static WordPress hosts do it’s that your precise WordPress website lives in a separate container that’s not accessible to the general public.
You employ that WordPress set up so as to add content material and handle your website. When you’re completed making modifications, your host will generate the static HTML recordsdata and deploy these HTML recordsdata to the front-end surroundings that your website’s guests will expertise.
So a lot of the static WordPress hosts that you simply’ll discover are literally two issues:
- A static website generator (that is what turns your WordPress website into static HTML)
- A bunch (that is what really serves these HTML recordsdata as much as guests)
Execs and Cons of Static WordPress Internet hosting
Whereas there are some huge advantages to static WordPress internet hosting, it’s positively not the proper strategy for a lot of (possibly most) WordPress websites as there are additionally some huge cons.
Let’s begin with the great things, first, although!
Execs of Static WordPress Internet hosting
The 2 huge advantages of static WordPress internet hosting vs conventional WordPress internet hosting are:
- Safety – as a result of your website is static, there aren’t any vulnerabilities for individuals to take advantage of in your website itself. This makes it about as safe as doable.
- Efficiency – your website goes to load lightning quick as a result of there’s no extra server-side processing or database queries.
Past that, as a result of a static website eliminates a lot of the load in your server, it can save you a ton of cash. Even with only a $5 per 30 days DigitalOcean droplet, you’ll be capable to serve billions of requests per 30 days.
Lastly, many WordPress plugins work simply tremendous with static WordPress. For instance, you’ll nonetheless be capable to use your favourite web page builder to design your pages (so long as you’re not utilizing Elementor Professional’s dynamic content material performance, that’s).
Cons of Static WordPress Internet hosting
The largest con of static WordPress internet hosting is within the title – it’s static! One of many causes WordPress is so in style is due to how simple it makes it to create dynamic content material.
Once you go static, that goes away. And that’s an enormous deal for lots of web sites! As quickly as you go static, all of these things will cease working:
- Native feedback
- Contact kind plugins
- bbPress or BuddyPress
- Web site search
- And so forth.
Now, there are positively methods round this. For instance, you could possibly use:
However the fundamental concept is that plenty of the plugins and options you like will both cease working utterly, or require a workaround so that you can preserve utilizing them.
Moreover, there’s additionally a little bit of added trouble in that you simply’ll must re-deploy your website everytime you add or edit content material, as a substitute of simply clicking the Publish button such as you do on an everyday WordPress website.
Who Ought to Use Static WordPress Internet hosting?
Static WordPress internet hosting is a good possibility in case your website doesn’t change so much and doesn’t depend on dynamic content material.
For instance, in case you simply have a easy brochure web site that doesn’t change a lot, going static is a good concept. Or, when you have a weblog that you simply replace a few occasions per week, static would possibly make sense for you, too.
Nevertheless, in case you do depend on dynamic content material, static internet hosting is certainly not for you.
Three Devoted Static WordPress Hosts to Get You Began
The simplest method to go static is with a devoted static WordPress host. These hosts will deal with each making your website static and internet hosting these static recordsdata for guests.
Sometimes, they’ll put your WordPress dashboard in its personal separate container that you would be able to activate/off as wanted. Then, if you wish to deploy, you may simply click on a button to have the host construct your static website.
Shifter might be essentially the most well-known static WordPress host, and it additionally has an attention-grabbing twist in that it provides a restricted free plan (although you may’t use a customized area). The cool factor, although, is that this allows you to see whether or not you want static WordPress internet hosting earlier than you make the soar.
Shifter consists of an built-in CDN (Amazon CloudFront) and an SSL certificates with all plans.
HardyPress is one other in style WordPress static internet hosting possibility that begins at simply ~€four/month.
One cool factor about HardyPress is that it consists of Contact Type 7 help, which suggests that you would be able to nonetheless create kinds with Contact Type 7. It’s not precisely the identical as a dynamic WordPress website, as a result of HardyPress is definitely making some tweaks and it’s good to configure Contact Type 7 in a sure manner. However that’s nonetheless fairly cool!
Past that, HardyPress additionally provides its personal website search function so as to nonetheless let guests search your website.
You may see an instance beneath:
Strattic is a more recent static WordPress internet hosting possibility that’s nonetheless in beta in the mean time. I’m undecided concerning the closing options/pricing, nevertheless it’s one other good resolution to maintain your eye on.
Create Your Personal Static WordPress Web site With WP2Static
As I discussed above, all these static WordPress hosts are principally a mix of two issues:
- A static website generator to show WordPress into static HTML recordsdata
- A bunch to serve these static recordsdata
In its place, you may generate a static website your self after which host these recordsdata wherever you need.
That’s what the WP2Static plugin from Leon Stafford does.
Out of your WordPress dashboard, it permits you to generate a static model of your website and deploy it by way of a wide range of strategies together with:
- Amazon S3
The free model permits you to deploy your total website, after which there are premium add-ons that allow you to solely ship recordsdata which were modified, which might be way more environment friendly for a big website.
The core free model is out there at WordPress.org, and the premium add-ons price $50 every.
One other good possibility is the Merely Static plugin, which can be obtainable without spending a dime at WordPress.org.
Closing Ideas on Static WordPress Internet hosting
Static WordPress internet hosting is certainly not the answer for all websites, however it’s a viable possibility for lots of non-dynamic websites and might make your WordPress website sooner and safer.
The simplest method to get began is with a static WordPress host like Shifter, HardyPress, or Strattic. Or, in case you’re extra of the DIY kind, you may as well use a plugin like WP2Static or Merely Static to transform your website to HTML and host it wherever you need.
Any questions? Ask away within the feedback!