Web Hosting and Migration

Webhosting

Voor een website met doelpubliek in BE/NL/Europa: Cloud86 gebruiken, geen CDN gebruiken.

Voor een website met een wereldwijd publiek: SiteGround hosting, + Cloudflare CDN gebruiken of hosting bij InstaWP Live (geen mailhosting hier).

Moving WP from subdomain/subdirectory to the root

Install WordPress in a subdirectory (example.com/mynewwebsite) and create your new site.

Do NOT Install WordFence yet and no cache plugin yet. No backup plugin yet. Install these in the new site. No GDPR plugin. No Analytics plugin. No SEO plugin. Only the absolute necessary plugins.

When your new site is finished:

FTP > make a copy of the old site and put it in a folder old_site_backup
Make also a backup copy of the database (sql) via MyPHPAdmin.

Upload all the files of your new site to the root. Start with the WP folders first.
Delete all the old files in the root.

Then download your wp-config.php file andย  add the following:
define( ‘WP_HOME’, ‘https://example.comโ€™ );
define( ‘WP_SITEURL’, ‘https://example.comโ€™ );

Or if your site starts with www:
define( ‘WP_HOME’, ‘https://www.example.comโ€™ );
define( ‘WP_SITEURL’, ‘https://www.example.comโ€™ );

Save your changes and upload the wp-login.php file back to your root.

Then log in at your WP dashboard (example.com/wp-login.php)

ย Settings > Permalinks > change to another option (Plain or Day and name) and click Save.
Then change again and set to โ€˜Post nameโ€™ and click Save again.

Update your URLs (menu items, links,โ€ฆ)
Do this manually or use a plugin:
Go Live Update Urls
https://wordpress.org/plugins/go-live-update-urls
Install the plugin, activate, then
Tools > Go Live
Check all the boxes
Enter your old URL:ย  www.example.com/mynewwebsite
Enter your new URL:ย  www.example.com
Click Update Urls

——————–

If necessary add redirection links to new pages in your .htaccess file

โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”

SECOND METHOD

Make the new site on your subdomain,
Then use Duplicator plugin to migrate site.
Or use the plugin Migrate Guru (both websites have to be WP sites!, install this plugin on both sites)

โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”

MIGRATE GURU

Install the plugin  on the evelopment site

Install the plugin on destination URL (WP has to be installed here)

On the development site: Click on Migrate Guru > fill in your email address, agree and click on mMigrate Siteโ€™

Choose Other Hosts

On the destination URL:  go to Migrate Guru > click on Your Migration Key – Copy

Go back to your development site and paste in the Migration Key and click โ€˜Migrateโ€™

Migrating by FTP

1 Upload all the files + database

2 In wp-config.php define WP_HOME and WP_SITEURL to your new domain name

3 In WP > General Settings > Update WordPress Address (URL) en Site Address (URL) to your new domain

4  Plugin GoLive Update Urls

Enter the old domain (do not include https:// or the trailing / ) in the Old URL field

Enter your new domain (do not include https:// or the trailing / )  in the New URL field

Click Update Urls

Manual

Dev site: database sql file+ wp-config.php file + wp-content folder in zip formaat

New site: install WP, delete wp-content folder and upload your wp-content folder

Replace wp-config.php file (update the DB info, name, user password)

In MyPHPAdmin: select your db, all, drop (everything is deleted),

Import your sql  file

In table wp-options https verwijder de s, install then SSL certificate, daarna s terug toevoegen