In this article, you will discover how to work on a WordPress site with a development environment.
During the redesign of a WordPress site, it is useful to be able to work on a copy of the site with a similar development environment without putting the site in production into maintenance during this time. To do this you need to prepare a pre-production environment on which the site for the redesign will be duplicated.
There are many methods for working with WordPress. With a site created with a CMS, we favor a development environment on the server side which will offer the advantage of working on the same environment as the site in production.
1. Creation of the pre-production environment
Creation of the site
The first step is to create the site on which you are going to copy the current version of your Internet site. It is therefore necessary to create a new site (for example, preprod.your-site.com) with a directory of its own on your web hosting. To do this on Infomaniak, simply follow this guide taking care to create a new directory (for example /preprod) that is not located in the folder of your site currently in production.
Creation of the database
After you have created the site that will host the copy of your current site you need to prepare the database in which you will duplicate all its contents (pages, articles, comments, etc.). If needed, this guide shows you step by step how to create a new database and a new user for your development environment.
Copy the files and the database
Once the site and the database of the pre-production environment is created, it only remains for you to duplicate the files and the content of your site within that pre-production environment.
To copy the files, we recommend that you use either our FTP Manager or SSH to go more quickly. For the database, you can either export and import via our manager, or once again do it using SSH if your database is large (guide).
Adaptation of the WordPress configuration file
The last step is to adapt the following data in the file wp-config.phpin the pre-production site:
- the database name (DB_NAME)
- the database user (DB_USER)
- the database user’s password (DB_PASSWORD)
If the site in production is in https, it will also be necessary to activate an SSL certificate on the pre-production site (guide).
Finally, we advise you to put the pre-production site in maintenance to avoid it being indexed by search engines. To do this, you can enable the Infomaniak maintenance mode.
2. Redesigning the site in the pre-production environment
Now that your development environment is ready, you can freely work on the redesign of your WordPress site: installing one of our 80 free themes (Elegant Themes), testing the extensions, in-depth review of the site structure, etc.
If you change the structure of your site and the URLs of your articles/pages change, you can use a free extension such as Redirection to automatically create redirections. This will prevent your visitors from landing on 404 pages while the engines re-index your site or if external sites have links on your site.
3. Putting the new site in production
When you have completed the redesign of your site, all you have to do is change the target directory of the site in production to the directory of the production environment and change the URLs of the pre-production site based on the domain name of the site in production using an extension such as Velvet Blues Update URLs or via phpMyAdmin.
If you use a cache extension like WP-rocket, W3 Total Cache or WP Super Cache, you will need to completely empty all cache by disabling and then re-enabling the plugin.
After verifying usage (missing images? faulty links? etc.), you simply need to disable the maintenance mode of your site and admire the result 🙂
To summarize, here are the steps to follow to put your site in production:
- change the target directory of the site your-site.comto /preprod
- use the plugin Velvet Blues Update URLs to replace the URLs in the articles and pages from preprod.your-site.com to your-site.com
- empty and also deactivate and then re-activate your cache plugin
- check the proper functioning of your site
- disable the maintenance
4. Recovery of the latest changes
If you have continued to change your site in production during the redesign of your site, it will be necessary to recover your changes (articles, media, pages, etc.).
****
Infomaniak hostings and Cloud Servers are optimized for WordPress and offer many advantages for this CMS:
- 80 free themes (ElegantThemes, renowned editor Theme Divi)
- automatic installation of WordPress and the selected theme
- SSL certificates free of charge
- unlimited number of MySQL databases
- etc.
Discover Infomaniak WordPress hosting
Vous aimerez aussi...
Our customer support is improving thanks to a software package created by our developers
Friday January 27th, 2023
Case study: Okam uses the Infomaniak Public Cloud to accompany SMEs in their digital transformation
Monday December 5th, 2022
Case study: Idéative develops the resilient digital ecosystem of the CHUV
Thursday October 27th, 2022
kDrive: online collaboration on Microsoft Word, Excel and PowerPoint documents
Thursday October 13th, 2022
Auch interessant...
Our customer support is improving thanks to a software package created by our developers
Friday January 27th, 2023
Case study: Okam uses the Infomaniak Public Cloud to accompany SMEs in their digital transformation
Monday December 5th, 2022
Case study: Idéative develops the resilient digital ecosystem of the CHUV
Thursday October 27th, 2022
kDrive: online collaboration on Microsoft Word, Excel and PowerPoint documents
Thursday October 13th, 2022
Case study: Nako is modernising its data backup and cybersecurity offer with Swiss Backup
Monday August 15th, 2022
The Infomaniak Email Service is evolving, centralising security and user management
Thursday August 4th, 2022
Engineering ladder: Infomaniak promotes personal fulfilment and career growth for developers
Thursday July 14th, 2022
Partner programme (B2B): become a reseller of Infomaniak services to develop your business
Friday March 25th, 2022
Case study: Axium IT creating a new IaaS offering to migrate customers to Infomaniak’s Public Cloud
Friday February 4th, 2022
Octree is accelerating the adoption of digital participatory democracy with the Infomaniak Public Cloud
Friday November 19th, 2021
Case study: Deeplink is migrating its AI platform from AWS to the Infomaniak Public Cloud
Friday October 1st, 2021
Public Cloud: Infomaniak is launching a sovereign alternative to the GAFAM group at very aggressive rates
Tuesday September 28th, 2021
Events streaming: Théâtre Confiture becomes an innovation laboratory for Infomaniak Tickets
Thursday July 8th, 2021
Webmail that’s 100% independent: Infomaniak offers a unique alternative to GAFAM
Thursday May 20th, 2021
kMeet: the local alternative to Microsoft Teams and Zoom becomes more powerful
Tuesday May 11th, 2021
Datacenter security: how does Infomaniak protect itself against the worst-case scenarios?
Thursday March 18th, 2021
Control over data: data centres are the cornerstones of Infomaniak’s independence
Friday March 5th, 2021
Infomaniak × École 42 Lausanne: free local developer training for world-class skills
Friday January 22nd, 2021
Roadmap 2021: Infomaniak accelerates the development of its independent technology
Tuesday December 8th, 2020
Engineers, whistleblowers, ethical hackers… this is how Infomaniak protects your URL data
Monday November 9th, 2020
Encrypted email address: Infomaniak supports HIN for professionals dealing with health-related issues
Monday September 7th, 2020
kMeet, which is still free of charge, gets a makeover and now features moderation and recording
Monday September 7th, 2020
Swiss Made Software: building the technological alternative in the heart of Europe
Wednesday August 26th, 2020
One single password to manage everything: Infomaniak’s continuing its simplification process
Friday August 14th, 2020
Infomaniak 2020 Roadmap: a genuine alternative to the Big Five tech companies
Friday February 21st, 2020
WordPress – global success driven by the efforts of an open-source community
Friday February 21st, 2020
9 reasons to choose Infomaniak to store your data and ensure data confidentiality
Monday February 3rd, 2020
Introducing kDrive: Switzerland’s first collaborative storage solution for SMEs and individuals
Friday December 20th, 2019
Black Friday: Infomaniak is clear – the planet is not something to haggle over
Friday November 29th, 2019
Infomaniak makes life easier for domain name owners and purchasers through bulk transfer
Monday September 23rd, 2019
Application hosting: an on-demand infrastructure to host a public service (case study)
Wednesday September 4th, 2019
How to create a Google Analytics goal for monitoring subscriptions to a newsletter
Friday August 16th, 2019
Web hosting with DIVI: free access to all WordPress themes by Elegant Themes
Thursday June 27th, 2019
Jelastic Cloud: the easy alternative to Amazon Web Services and Google Cloud Platform
Wednesday May 15th, 2019
Infomaniak makes your sites even more secure with Patchman Security Scanner
Friday February 22nd, 2019
Infomaniak launches SwissTransfer, the Swiss high-capacity alternative to WeTransfer
Friday February 15th, 2019
Speed up the page load time of your website anywhere in the world with Fast Anycast DNS
Friday February 1st, 2019
Guest Manager: the one-stop event organisation solution is now more powerful than ever before
Friday January 18th, 2019
Swiss Backup, the Swiss backup solution for Windows, Mac, Linux, iOS and Android
Thursday November 29th, 2018
Infomaniak Sync: the Android app to sync your WorkSpace calendars and contacts
Friday November 9th, 2018
DebConf18 in Taiwan: Infomaniak contributes to Open Source at the highest level
Tuesday October 16th, 2018
WorkSpace 3: the new generation of Swiss Webmail is evolving with its users
Friday September 14th, 2018
Infomaniak launches Jelastic Cloud: the Swiss PaaS platform for developers and businesses
Tuesday September 4th, 2018
ISO 27001: Infomaniak stands out for its optimal management of information security
Friday August 3rd, 2018
Invitation management service: Infomaniak launches a tool for organising your events
Friday July 27th, 2018
Create an on-line store: e-commerce sites are becoming increasingly popular
Wednesday March 21st, 2018
How to create a VPN in Switzerland with a Synology NAS, hosted with Infomaniak
Thursday March 15th, 2018
Infomaniak integrates the European General Data Protection Regulation – GDPR
Tuesday February 6th, 2018
Is your WordPress site not yet in https format? Here is how to enable it
Wednesday November 15th, 2017
5 concrete, simple recommendations for increasing your open rate – Email Marketing
Friday April 28th, 2017
Starting 4 April, your admin console interface is going to be gradually evolving
Thursday March 30th, 2017
Transfer a domain without interrupting the operation of your emails and Internet sites
Monday March 20th, 2017
The Rolex Grand Slam organiser sends its newsletters with Infomaniak: Interview
Thursday November 24th, 2016
A specialized partner of Solar Impulse, Infomaniak is actively involved in the adventure
Tuesday June 16th, 2015
Sync your contacts and calendars (even more easily) with the Infomaniak WorkSpace
Tuesday May 5th, 2015
Install Joomla, ownCloud, phpBB, and more… in just a few clicks with Infomaniak hostings
Friday January 23rd, 2015
Rencontres du Management Durable (Sustainable Management Meetings) at the CCIG
Friday June 20th, 2014
The new “Mon Site Facile” tool: easy web site creation in just a few clicks of the mouse
Friday February 28th, 2014
We also suggest...
Our customer support is improving thanks to a software package created by our developers
Friday January 27th, 2023
Case study: Okam uses the Infomaniak Public Cloud to accompany SMEs in their digital transformation
Monday December 5th, 2022
Case study: Idéative develops the resilient digital ecosystem of the CHUV
Thursday October 27th, 2022
kDrive: online collaboration on Microsoft Word, Excel and PowerPoint documents
Thursday October 13th, 2022
Case study: Nako is modernising its data backup and cybersecurity offer with Swiss Backup
Monday August 15th, 2022
The Infomaniak Email Service is evolving, centralising security and user management
Thursday August 4th, 2022
Engineering ladder: Infomaniak promotes personal fulfilment and career growth for developers
Thursday July 14th, 2022
Partner programme (B2B): become a reseller of Infomaniak services to develop your business
Friday March 25th, 2022
Case study: Axium IT creating a new IaaS offering to migrate customers to Infomaniak’s Public Cloud
Friday February 4th, 2022
Octree is accelerating the adoption of digital participatory democracy with the Infomaniak Public Cloud
Friday November 19th, 2021
Case study: Deeplink is migrating its AI platform from AWS to the Infomaniak Public Cloud
Friday October 1st, 2021
Public Cloud: Infomaniak is launching a sovereign alternative to the GAFAM group at very aggressive rates
Tuesday September 28th, 2021
Events streaming: Théâtre Confiture becomes an innovation laboratory for Infomaniak Tickets
Thursday July 8th, 2021
Webmail that’s 100% independent: Infomaniak offers a unique alternative to GAFAM
Thursday May 20th, 2021
kMeet: the local alternative to Microsoft Teams and Zoom becomes more powerful
Tuesday May 11th, 2021
Datacenter security: how does Infomaniak protect itself against the worst-case scenarios?
Thursday March 18th, 2021
Control over data: data centres are the cornerstones of Infomaniak’s independence
Friday March 5th, 2021
Infomaniak × École 42 Lausanne: free local developer training for world-class skills
Friday January 22nd, 2021
Roadmap 2021: Infomaniak accelerates the development of its independent technology
Tuesday December 8th, 2020
Engineers, whistleblowers, ethical hackers… this is how Infomaniak protects your URL data
Monday November 9th, 2020
Encrypted email address: Infomaniak supports HIN for professionals dealing with health-related issues
Monday September 7th, 2020
kMeet, which is still free of charge, gets a makeover and now features moderation and recording
Monday September 7th, 2020
Swiss Made Software: building the technological alternative in the heart of Europe
Wednesday August 26th, 2020
One single password to manage everything: Infomaniak’s continuing its simplification process
Friday August 14th, 2020
Infomaniak 2020 Roadmap: a genuine alternative to the Big Five tech companies
Friday February 21st, 2020
WordPress – global success driven by the efforts of an open-source community
Friday February 21st, 2020
9 reasons to choose Infomaniak to store your data and ensure data confidentiality
Monday February 3rd, 2020
Introducing kDrive: Switzerland’s first collaborative storage solution for SMEs and individuals
Friday December 20th, 2019
Black Friday: Infomaniak is clear – the planet is not something to haggle over
Friday November 29th, 2019
Infomaniak makes life easier for domain name owners and purchasers through bulk transfer
Monday September 23rd, 2019
Application hosting: an on-demand infrastructure to host a public service (case study)
Wednesday September 4th, 2019
How to create a Google Analytics goal for monitoring subscriptions to a newsletter
Friday August 16th, 2019
Web hosting with DIVI: free access to all WordPress themes by Elegant Themes
Thursday June 27th, 2019
Jelastic Cloud: the easy alternative to Amazon Web Services and Google Cloud Platform
Wednesday May 15th, 2019
Infomaniak makes your sites even more secure with Patchman Security Scanner
Friday February 22nd, 2019
Infomaniak launches SwissTransfer, the Swiss high-capacity alternative to WeTransfer
Friday February 15th, 2019
Speed up the page load time of your website anywhere in the world with Fast Anycast DNS
Friday February 1st, 2019
Guest Manager: the one-stop event organisation solution is now more powerful than ever before
Friday January 18th, 2019
Swiss Backup, the Swiss backup solution for Windows, Mac, Linux, iOS and Android
Thursday November 29th, 2018
Infomaniak Sync: the Android app to sync your WorkSpace calendars and contacts
Friday November 9th, 2018
DebConf18 in Taiwan: Infomaniak contributes to Open Source at the highest level
Tuesday October 16th, 2018
WorkSpace 3: the new generation of Swiss Webmail is evolving with its users
Friday September 14th, 2018
Infomaniak launches Jelastic Cloud: the Swiss PaaS platform for developers and businesses
Tuesday September 4th, 2018
ISO 27001: Infomaniak stands out for its optimal management of information security
Friday August 3rd, 2018
Invitation management service: Infomaniak launches a tool for organising your events
Friday July 27th, 2018
Create an on-line store: e-commerce sites are becoming increasingly popular
Wednesday March 21st, 2018
How to create a VPN in Switzerland with a Synology NAS, hosted with Infomaniak
Thursday March 15th, 2018
Infomaniak integrates the European General Data Protection Regulation – GDPR
Tuesday February 6th, 2018
Is your WordPress site not yet in https format? Here is how to enable it
Wednesday November 15th, 2017
5 concrete, simple recommendations for increasing your open rate – Email Marketing
Friday April 28th, 2017
Starting 4 April, your admin console interface is going to be gradually evolving
Thursday March 30th, 2017
Transfer a domain without interrupting the operation of your emails and Internet sites
Monday March 20th, 2017
The Rolex Grand Slam organiser sends its newsletters with Infomaniak: Interview
Thursday November 24th, 2016