Skip to main content

How to Migrate a WordPress Site to Hostek

A Site Administrator can move a WordPress website from a previous host to Hostek's infrastructure. This process involves migrating the website's files and the associated database to ensure the site remains functional after the move.

A Site Administrator can move a WordPress website from a previous host to Hostek's infrastructure. This process involves migrating the website's files and the associated database to ensure the site remains functional after the move.

Before you begin

You will need:

  • Administrator access to the current WordPress site.

  • Access to the current hosting environment (e.g., via FTP/SFTP or a control panel).

  • Access to the current database (e.g., via phpMyAdmin).

  • A Hostek account with a prepared domain or subdomain.

  • The login credentials for your Hostek account.

Migration Preparation

Before moving any data, it is recommended to perform a full backup of your current site's files and database.

Step 1: Prepare the Migration

  1. Identify the current site's database name, username, and password.

  2. Note the current site URL (e.g., https://example.com).

  3. Determine the new destination URL on Hostek (e.g., https://example.com).

Step 2: Export the Current Site Data

  1. Log in to your current hosting control panel.

  2. Open the database management tool (typically phpMyAdmin).

  3. Select the database associated with your WordPress site.

  4. Select all tables and click the Export tab.

  5. Choose the SQL format and click Go to download the .sql file.

  6. Connect to your site via FTP or SFTP.

  7. Download all files from the WordPress directory to your local computer.

Step 3: Import Data to Hostek

  1. Log in to your Hostek account.

  2. Access your hosting control panel.

  3. Create a new database and a database user. Note the database name, username, and password provided by the system.

  4. Open phpMyAdmin in your Hostek control panel.

  5. Select the new database you created.

  6. Click the Import tab.

  7. Select the .sql file you exported from your previous host and click Go.

Step 4: Upload Files to Hostek

  1. Connect to your Hostek server using an FTP client (such as FileZilla).

  2. Upload all the files you downloaded from your previous host to the public_html directory (or the specific directory assigned to your site).

Step 5: Update Configuration and URLs

  1. Locate the wp-config.php file in your site's root directory via your FTP client or the Hostek File Manager.

  2. Edit the file and update the following lines with your new Hostek database credentials:

    • DB_NAME

    • DB_USER

    • DB_PASSWORD

    • DB_HOST (usually localhost)

  3. If your site URL is changing (e.g., moving from a temporary URL to a primary domain), use a tool like the "Better Search Replace" plugin or a manual SQL query to update the siteurl and home values in the wp_options table.

Confirm the result

  • The site loads successfully on the new Hostek URL.

  • All pages, images, and internal links function correctly.

  • The site is accessible via the WordPress login page (e.g., example.com/wp-admin).

Limitations

This procedure does not include the process of updating DNS records. You must update your nameservers or DNS records to point to Hostek before the site will be visible to the public on the new server. If you are changing your domain name during the move, you must also perform a search and replace of the old URLs in the database.

Did this answer your question?