September 27, 2019
5 min Read
September 27, 2019
5 min Read
Developing a live WordPress site without testing it can be dangerous. In this article, we’re going to discuss WordPress staging environment, which provides you with a safer place to test features without affecting the live site.
A WordPress staging site is like a replica of your live site, which can be hosted on your private subdomain.
This environment allows you to test any changes or major new features you want to implement on your live, public-accessed website.
Thus, they can avoid downtime or any bad user experience that might otherwise occur.
Mostly, this environment is not accessible for the general public, your main visitors, even search engines should never access your staging site. That’s because you use it mainly for development purposes, which can involve a white screen of death (WSoD), crashes, slow pages load, etc.
There are three main functions of a WordPress staging site:
As we’ve described in the previous section, it’s apparent that a WordPress staging site can help you quite a lot. If you are a webmaster, it’s obvious that you won’t let visitors have any bad experience while visiting your site. This is important, especially if you want to reduce your site’s bounce rate.
With a staging site, you can freely make changes, or invent whatever features you might think to help your site visitors, without having the risk of failure as directly putting it on your live site.
If you develop a website for someone else, staging site can give you privacy to build and update the site without having to worry about that person checking in on you.
And when you want to introduce new code and test it live, you won’t take down that website should any problem occur, which would reflect poorly on your reputation.
Speaking of the pre-launch test, these are three common scenarios that used on a WordPress staging site:
As a closed ecosystem, staging environment can also protect you from SEO ranking issues, that usually happen when you directly develop a live site.
Search engine crawlers can detect errors created from your development activity on the live site, thus impacting your site’s SEO performance.
On the flip side, you don’t want the search engine to crawl and index your staging site either, as getting index on an unfinished site can also negatively affect your SEO.
To prevent the search engine from indexing your staging site, you can do the following:
While the overall structure of your staging website can be pretty much the same, it’s actually different from your live site. That’s why you can have more freedom to tweak and tune the staging site in the first place.
There are noticeable differences for both of them. Firstly, you can’t replicate or transfer the traffic from the staging site to the live one.
And due to development nature, your staging site can have a lot of corrupt data that may affect the overall page performance. Thus, this site can be slower than the live one.
Now you know about the WordPress staging site and the benefits that it has to offer for your development purposes. In this section, we’re going to tell you how to create a staging WordPress site. There are two ways to do this: manually or using a plugin.
First, you need to have access to your hosting control panel. This method requires you to modify code and database settings. You can perform a more complex modification using this method. We wrote an article about how to manually create a staging WordPress site.
You can create a staging environment using a plugin called WP Staging. This plugin allows you to create and clone your website. It’s pretty straightforward to use, as all you have to do is install, activate, and create the new staging site.
If you’re new to WordPress, have a look at our article on how to install a WordPress plugin.
Once you activated the plugin, go to the WP Staging -> Create New Staging Site. Give the site a name, in this case, it’s staging, and check all the Files and Database Tables you want to copy. And when you’re done, click Start Cloning.
Important: Create a backup file before making a staging environment for your website.
When you’re inside the WordPress staging site, it will have an orange banner attached on your admin bar.From here on, you can customize the themes or update and test the plugins before doing the same thing on your live site.
You can also automatically publish the changes you made using this plugin. However, you need a premium plan to do that.
It is also worth to note that using the plugin to create a staging site can be limiting since you can only test the compatibility of new plugins and themes.
If you want to have more flexibility to change the whole website code, you can do so by creating the staging site with the manual method.
Now you’ve learned about WordPress staging site, which provides you with a safe environment before publishing any changes to your live website.
You’ve also learned how to create a staging site manually or by using a plugin.
But remember, the manual method is your go-to option if you want greater flexibility to change the code.
Do you have any experience in developing a site on a staging environment? Please share your story in the comments section below.