Reprint Relay Get started

Move WordPress from XAMPP, MAMP or Laragon to a live server

Short answer

Copy the site folder and the database to your hosting, then replace localhost with your domain. The easiest way is wp2wp.link: it copies the site straight from your computer.

Start your move

By wp2wp.linkUpdated 4 min read

Result
Your site runs at your domain
Your time
About 15 minutes
Cost
Free, up to 50 GB per move
Your local site
Stays as it is

Which way fits you?

Before you start

Where your site lives

ToolSite folderUsual address
XAMPP (Windows)C:\xampp\htdocs\yoursitehttp://localhost/yoursite
MAMP (macOS)/Applications/MAMP/htdocs/yoursitehttp://localhost:8888/yoursite
Laragon (Windows)C:\laragon\www\yoursitehttp://yoursite.test

The database is in the local MySQL or MariaDB server. You open it with phpMyAdmin A web tool in most hosting panels and local tools. With it you can look into a database, save it as an SQL file and load one. (XAMPP, MAMP) or HeidiSQL (Laragon).

Straight from your computer

wp2wp.link guides you through it with Reprint, the free copy plugin from WordPress.org.

Your data: your site passes through our server while it is copied. We don’t store it, but we could read it. Move sites with confidential data by hand instead. Details

  1. On your local site, install Reprint A free, open-source plugin on WordPress.org that copies a WordPress site to another place. wp2wp.link guides you through a move with it. and the Connector plugin A small WordPress plugin from wp2wp.link. You need it only when your site is on your computer. You install it there next to Reprint..

    Reprint is under Plugins → Add New Plugin. The connector is a .zip file from the guide on wp2wp.link.

  2. Under Tools → Reprint Relay, tick the box and click Connect.

    A code appears. Type it into the guide on wp2wp.link.

  3. At your hosting, create an empty MySQL database.

    Note its name, user, password and host.

  4. Upload the Helper file The file reprint-web.php from wp2wp.link. You upload it into your domain’s folder at the new host and open it in your browser. reprint-web.php to your domain’s folder and open it.

    The guide gives you the file and its password. Your domain doesn’t lead there yet? Use a temporary address.

  5. In the helper, tick the box and click Get migration token.

    Check that both screens show the same characters, then click Approve on your local site.

  6. In the helper, enter the database details and click Start migration.

    Keep your computer on and XAMPP, MAMP or Laragon running until it is done. Links and images then point to your domain instead of localhost.

  7. Clean up: delete reprint-web.php and the reprint-data folder, then click Disconnect.

By hand

This works with any host and no extra plugin. But you must get every step right yourself.

  1. In phpMyAdmin, select your site’s database and click Export.

    You get an .sql file.

  2. At your hosting, create an empty database and a user.

    Note the name, user, password and database host.

  3. Import the .sql file there.

    Large files often stop at the host’s upload or time limit. Split them, or ask your host to import them.

  4. Upload the site folder’s contents into the domain’s folder with FTP.

    The folder is usually public_html, httpdocs or www.

  5. At your hosting, enter the new database details in wp-config.php.

    Name, user, password and host.

  6. Replace http://localhost/yoursite with https://your-domain.com in the database.

    Use wp search-replace or Better Search Replace. Never replace it as plain text in the .sql file: why.

How you know it worked

If something goes wrong

The domain shows the XAMPP or MAMP page

The files went into the wrong folder, or an old index.html is still in the domain’s folder. Ask your host which folder belongs to your domain.

The phpMyAdmin import fails because the file is too large

The host’s upload limit is too small for the file. Compress it, split it or ask your host to import it. Or copy the site straight from your computer, which needs no import.

Links still contain the sub-folder

Your site was at localhost/yoursite and is now at the domain itself. Replace the whole old address, including the folder: how.

Questions

Do I need to upload WordPress core files?

By hand, you can install a fresh WordPress there and upload only wp-content. A copy straight from your computer brings everything.

Can I do it without FTP?

Yes, if your hosting panel has a file manager. A copy straight from your computer needs only one uploaded file.

Is my local site changed?

No. Reprint only reads your content and files. Approving adds your hosting’s key, and the connector stores a few settings. Deleting the connector removes both.

Sources, checked 18 November 2026

Reprint on WordPress.org, Reprint limitations, wp search-replace.

Was this page helpful?

Back to top