Welcome! In this article we are going to go over the steps for migrating your WordPress site from Flywheel hosting to Strattic.
Flywheel adds some additional code and configurations to their setup that requires a few extra steps when transferring a site.
Step 1: Follow the Normal Migration Process
To begin the process, follow our basic migration steps.
This will get your site transferred over to Strattic. However, you will see a series of error messages when you go to visit your WordPress site on Strattic.
Step 2: Update the wp-settings.php File
This step will remove the error messages we saw at the end of step one.
To do this, we have to make a change to the wp-settings.php
file.
-
Login to our Strattic account using SFTP. (Here is an article showing how to access your site with SFTP)
-
Open the
wp-settings.php
file in thepublic_html
folder. -
Around like 290 find this line of code:
include_once( ABSPATH . "/.fw-config.php" );
-
Delete that line of code.
-
Save the updated
wp-settings.php
file.
Step 3: Check if there is a .fw-config file in the root and delete it
You should now be able to view your WordPress site on Strattic as well as long to the admin area. However, the Strattic buttons will not appear in the admin area yet.
Step 4: Update the wp-config.php File
To make the Strattic buttons appear in the admin area we have make some changes to the wp-config.php
file.
-
Login to our Strattic account using SFTP.
-
Open the
wp-config.php
file in thepublic_html
folder. -
Around line 96, find code that looks like the following
define('WP_CONTENT_DIR', '/some/value/is/here');
define('WP_CONTENT_URL', 'https://some.url.io/is/here');
define('UPLOADS', 'some/vaue/is/here');
-
Delete those lines of code.
-
Save the
wp-config.php
file.
This will make the Strattic menu items appear in your WordPress admin area. However, the publishing to static will fail until we complete our final step.
Step 5: Modify the .htaccess file
In this final step you will have to make changes to the .htaccess
file.
-
Login to our Strattic account using SFTP.
-
Open the
.htaccess
file in thepublic_html
folder. (If you do not see this file, you may have to turn on “Show Hidden Files.” This is often an option under the “View” settings.) -
Delete the code in the
.htaccess
file -
Replace it with the code below
-
Save the
.htaccess
file
Replace the existing .htaccess
code with the code below:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
This will allow the publish to static and publish to preview to work properly.
Step 6: Check your WordPress site on Strattic for any encoding issues
Click around and make sure everything looks ok. If you notice any encoding issues on your site, try adding this line to your wp-config file:
define(‘DB_CHARSET’, ‘utf8’);
Step 7: Proceed as Normal
Your Flywheel site should now be fully migrated over to Strattic and work properly. You can now proceed with editing your site and pushing it live.