A staging site is a private copy of your live website where you can test changes - new plugins, theme updates, PHP version upgrades - without any risk to the live site. Enhance makes this straightforward.
Method 1: Clone via Enhance
Enhance has a built-in clone option available when adding a new website:
- Log in to web.teklanhosting.co.uk.
- Click Websites, then Add Website.
- Select Clone a website (the third option on the create screen).
- Choose the existing website to clone and set the new domain (e.g.
staging.example.com). - Click Create.
Enhance copies your files and databases to the new website automatically.
Method 2: Manual Staging Setup
If you need more control over the process, set one up manually:
- Add a new website in Enhance for
staging.example.com(see the subdomains guide). - Copy your live site's files to the new staging directory via FTP or the file manager.
- Create a new database in Enhance and import a copy of your live database.
- Update the configuration file (e.g.
wp-config.php) to use the new database credentials and the staging URL. - For WordPress, use the Better Search Replace plugin to update the domain in the database from
example.comtostaging.example.com.
Keeping the Staging Site Private
You do not want the public or search engines indexing your staging site. Options:
- In WordPress, go to Settings → Reading and tick Discourage search engines from indexing this site.
- Add HTTP authentication via Enhance to password-protect the staging URL entirely.
- Add a
robots.txtdisallow rule:User-agent: * Disallow: /
Pushing Changes to Live
After testing on staging, push changes to production:
- Files only: Copy changed files from staging to live via FTP, overwriting the old versions.
- Database: Export the staging database, import it to production, then run a search-replace to change the staging URL back to the live URL.
- WordPress: Plugins like WP Migrate DB can automate the database push with URL rewriting built in.
Backup first: Before pushing staging to live, take a manual backup of the live site. If anything goes wrong during the push you can restore in minutes.