How can I test WordPress without everyone seeing the test site?
Customers who want to start using the powerful WordPress CMS software sometimes ask if there’s a way to make sure the site isn’t visible to the public while they test it (this is often called “staging”).
If you’re installing WordPress on a brand new domain name with no existing content, a plugin called WP Maintenance Mode can do this. Just install WordPress normally, add that plugin, and you’ll be able to view and test the site while showing other people a special “coming soon” page.
The rest of this page has suggestions for a couple of other cases, too:
- Creating a temporary “staging” site that you eventually want to make “live”
- Creating a permanent “test” site
Creating a temporary “staging” site that you eventually want to make “live”
Customers who already have an active site with us, but want to switch to WordPress in the future, need a way to leave their old site visible to the public while they test the new WordPress site.
You can do this by installing a new copy of WordPress in a subdirectory as a first step, then configuring it as you want it to look, then making it visible at the top level when you’re ready to take the final step:
1. Install WordPress normally in a new directory
As a first step, you should install WordPress the usual way, choosing the “in a directory” option. The new directory name you choose doesn’t matter, but we recommend calling it wordpress.
Installing WordPress in a new directory will not affect the existing appearance of your website.
2. Configure and test your site
Once you’ve installed it, configure the WordPress site just as you’d like, and test it. Again, this will not affect your main site.
(If you want to start the new site as a copy of an existing WordPress site, you can use the WP Clone plugin to copy the original site’s content to the temporary staging site.)
3. Make WordPress “live”
When you’re ready, the final step is to move your “staging” WordPress copy to the top level of your site. We’ll be glad to to do this for you.
Tip: Use the real domain name for the staging site.Note that developing it as a directory of the intended final domain name is much simpler than developing it on a different temporary domain name. That’s because moving WordPress between domain names is hard (you’d need to move the database, too), but moving WordPress within the same domain name is easy (you won't need to move the database, and we can do it for you).
Creating a permanent “test” site
The instructions above talk about creating a separate “staging” site in a subdirectory, modifying the staging site until it looks perfect, then making the staging site be a live site.
Some people want to do something different: Create a separate WordPress site as a permanent “test area” that they never intend to use as the real site. This is a good way to experiment with different themes or plugins. It’s really no different from the “temporary staging site” described above, except that since you have no expectation of using it as the real site, you don’t necessarily need to duplicate all of the original site, and you don’t need to be particularly careful not to ruin anything — you can experiment as much as you want.
To do this, install a separate copy of WordPress, choosing the “in a directory” option. The new directory name you choose doesn’t matter, but you may want to call it something like test-site.
Then create a couple of “dummy” posts and pages in order to see what the content will look like (or use the WP Clone plugin if you want to copy all of an existing small site). Now you can experiment with the test site as much as you want, making sure that plugin and theme changes are “safe” before you make the same change on your main site.