WordPress Test site is considered to be User Acceptance Testing (UAT) for your Live WordPress blog. Many bloggers which includes me have set up the WordPress test site on their local computer for UAT and to do any other modifications. However, The idea of this post is to set up an Online WordPress test site for User Acceptance Testing within your web hosting environment.
The basic benefit of setting up a WordPress test site online is you can access your test site anywhere from any PC. Also, you don’t need worry about saving and updating your Local WordPress test site. Setting up a WordPress test site online is pretty easy and all you need is; your web hosting environment should have enough space and databases.
Create a subdomain
You must name your WordPress test environment to access it and in order to do that you have to create a sub-domain. Also, your subdomain should be unique and it should not contain common & easy to guess words such as ‘test.youdomain.com’ or ‘uat.yourdomain.com’ etc.. You can use complex keywords in your subdomain such as ‘x2inte77set.yourdomain.com’. The key idea is only authorized person should know the URL of your WordPress test setup.
To create a subdomain, Login to your web hosting control panel, Under Domains section, Click on Subdomains and create it.
After creating your subdomain, the next obvious thing is to install wordpress on the document root of your subdomain. Here, I’ve created a subdomain ‘cdnlife28set.lifefive.in’ and my Document Root is public_html/cdnlife28set. Hence, the new WordPress files should installed in ‘cdnlife28set’ directory.
If you web hosting provider provides ‘Fantastico’ or any other automatic script installer facility, you can install WordPress easily otherwise go for a manual installation. Also, you need to make sure that your live website and test website should have same version of WordPress, Plugins & Themes.
Export & Import WordPress eXtended RSS or WXR
After Successful installation of WordPress, Go to you Live WordPress site, Login to Dashboard, Go to tools and click Export Option. Here, under ‘Choose what to export’ option select ‘All content’ and download the file.
Now Login to your WordPress test site, under tools section click on ‘import’. Under import option, Click on WordPress, install the recommended plugin. After installation select the exported WordPress eXtended RSS and import the same to your WordPress test site.
Settings & Permissions
Remember that your WordPress test setup is only for user acceptance testing and modification purpose and only authorized persons should be able to access it. In order to do this you have apply certain settings and permissions mentioned below:
Hide you WordPress test setup from Search Engines: To do this, Login to dashboard of WordPress test site, Go to settings and click ‘privacy’. Here, check ‘Ask search engines not to index your site’. Save your changes.
Login Required to see the posts: Asking search engines not to index the test site doesn’t guarantee that your test site will not be indexed by Search Bots and actually it depends upon search engines that how they treat your test site. Hence, you need to make sure that login must be required to view the content of WordPress test site and to do this, Login to your Web Hosting cPanel, under security section, click ‘Password protect directories icon’ and check ‘Web Root (Public_html/www)’ option and click Go.
Now select the directory where your WordPress test setup is installed, say its ‘cdnlife28set’.
Under Security Settings, Check ‘Password protect this directory’ option and Name the protected directory and save it. Also, create a user to access the directory, set the password and add the user. Save you work.
Now whenever a user tries to access the protected directory through the web, he will be prompted to enter the username and password. The name that you choose for the protect directory will appear as well.
If this option doesn’t work for you then you can go for an alternate option. Install Force User Login Multisite WordPress plugin which makes your test blog private and every user is required to Log in to view the content. I believe this plugin would resolve the problem for everybody.
This is how you can setup your own WordPress test site online. Do let us know your suggestions and questions in this regard.None found.