Cómo migrar WordPress a otro Hosting ✅ Manualmente SIN plugins 🔥 + Checklist descargable
Table of Contents
Introduction
Migrating a WordPress site to a new hosting provider can seem daunting, especially without using plugins. This tutorial provides a step-by-step guide to manually migrating your WordPress site, ensuring a smooth transition while maintaining your website's integrity and SEO rankings.
Step 1: Create a Backup of Your WordPress Site
To start, you need to create a complete backup of your WordPress site. Follow these steps:
-
Access Your Current Hosting Account
- Log in to your hosting control panel (cPanel, Plesk, etc.).
-
Download Files
- Go to the File Manager.
- Navigate to the root directory of your WordPress installation (often
public_html
). - Select all files and folders and download them as a zip file to your computer.
-
Export Database
- Open phpMyAdmin from your control panel.
- Select your WordPress database from the left sidebar.
- Click on the "Export" tab.
- Choose the "Quick" export method and the format as SQL.
- Click "Go" to download the database file.
Step 2: Set Up Your New Hosting Account
After backing up your site, you need to set up your new hosting environment.
-
Choose and Purchase New Hosting
- Research and select a new hosting provider that suits your needs.
- Sign up and create an account.
-
Upload Your WordPress Files to the New Host
- Access the File Manager of your new hosting account.
- Navigate to the root directory (often
public_html
). - Upload the zip file containing your WordPress files and extract it.
Step 3: Import Your Database to the New Host
After uploading your files, you need to transfer your database.
-
Create a New Database
- Go to your new hosting control panel.
- Find the MySQL Databases section.
- Create a new database, a user, and assign the user to the database with all privileges.
-
Import the Database
- Open phpMyAdmin in your new hosting account.
- Select the newly created database.
- Click on the "Import" tab.
- Choose the SQL file you exported earlier and click "Go."
Step 4: Configure wp-config.php
Next, update your WordPress configuration file to connect to the new database.
- Edit wp-config.php
- Locate the
wp-config.php
file in your WordPress files on the new host. - Update the following lines with your new database information:
define('DB_NAME', 'your_new_database_name'); define('DB_USER', 'your_new_database_user'); define('DB_PASSWORD', 'your_new_database_password'); define('DB_HOST', 'localhost'); // Usually 'localhost'
- Save the changes.
- Locate the
Step 5: Migration Scenarios
Decide how you want to handle your domain during the migration.
Scenario 1: Maintain the Same Domain
-
Update DNS Records
- Go to your domain registrar and update the DNS records to point to your new hosting provider.
-
Test Your Site
- After the DNS propagation (which can take up to 48 hours), test your website to ensure everything is working correctly.
Scenario 2: Change Domain
-
Purchase a New Domain (if needed)
- Register your new domain with a registrar.
-
Update WordPress Address
- In the
wp-config.php
, add the following lines:define('WP_HOME', 'http://yournewdomain.com'); define('WP_SITEURL', 'http://yournewdomain.com');
- In the
-
Search and Replace Old Domain
- To update the database for the new domain, you can run a SQL query in phpMyAdmin:
UPDATE wp_options SET option_value = replace(option_value, 'http://oldurl.com', 'http://newurl.com') WHERE option_name = 'home' OR option_name = 'siteurl';
- Repeat similar updates for other tables like
wp_posts
,wp_postmeta
, etc.
- To update the database for the new domain, you can run a SQL query in phpMyAdmin:
Step 6: Ensure SEO Preservation
To maintain your SEO standings:
- Set up 301 redirects from your old domain to your new domain.
- Update your Google Search Console with the new domain.
- Inform your audience about the domain change.
Conclusion
Migrating your WordPress site manually involves creating backups, setting up a new hosting environment, transferring files and databases, and configuring your new site. By following this guide, you can achieve a seamless transition without losing data or SEO rankings. Remember to test your site thoroughly after migration and consult the downloadable checklist for additional tips. Your next steps should include monitoring your site’s performance and ensuring everything runs smoothly post-migration.