Apporta le modifiche finali
Step 6 of the Move a Managed WordPress site to an unmanaged WordPress account series.
Managed WordPress uses a randomized table prefix for its database. To get your site to work on the new host, you need to update the
wp-config.php on your new host so it matches the database prefix in the SQL database file imported in step 5.
- Connect to your new hosting account using a file manager or an FTP client like Filezilla. Each hosting provider has a preferred way of doing this. If you're unsure how to do it, ask your new hosting provider for instructions.
- Locate the
wp-config.phpfile and edit it. If you're using FileZilla, select the file and then right click and select View/Edit.
- Update the
$table_prefix. You should have the prefix after importing the SQL database file in Import your site database. Form example, if your prefix is
Before: $table_prefix = 'wp_'; After: $table_prefix = 'wp_yourPrefix_';
- Once you're done making changes, save the file. If you're using FileZilla, accept the overwrite warning in FileZilla to replace the file on your new host.
- Testa il tuo sito per vedere se funziona correttamente.
If you're changing the domain along with the site migration, you'll need to perform a find and replace in the database.
- If your new unmanaged hosting account is with us, follow the instructions in Trova e sostituisci per WordPress con SSH.
- If your new unmanaged hosting account is with another host provider, see their documentation for directions.