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.
- 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?
- Straight from your computerEasiestNo phpMyAdmin import, only one small file to upload. Guided step by step.
- By handphpMyAdmin, FTP, then replace the address. Large databases often fail to import.
Before you start
- XAMPP, MAMP or Laragon is running, with Apache and Database (MySQL, MariaDB) Where WordPress keeps your posts, pages, settings and users. The files hold the theme, plugins and uploads. A move needs both. started.
- You can log in to your local site as admin.
- Your hosting has PHP The programming language WordPress runs on. Hosting plans let you choose the PHP version. 7.4 or newer and a MySQL or MariaDB database.
- You can upload files there, with FTP and SFTP The usual way to copy files to your web space with a program such as FileZilla. SFTP is the encrypted version. or the File manager A page in your hosting panel (cPanel, Plesk or your host’s own) where you can upload, edit and delete files in your browser, without an FTP program..
Where your site lives
| Tool | Site folder | Usual address |
|---|---|---|
| XAMPP (Windows) | C:\xampp\htdocs\yoursite | http://localhost/yoursite |
| MAMP (macOS) | /Applications/MAMP/htdocs/yoursite | http://localhost:8888/yoursite |
| Laragon (Windows) | C:\laragon\www\yoursite | http://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
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.
Under Tools → Reprint Relay, tick the box and click Connect.
A code appears. Type it into the guide on wp2wp.link.
At your hosting, create an empty MySQL database.
Note its name, user, password and host.
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.phpto 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.
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.
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.Clean up: delete
reprint-web.phpand thereprint-datafolder, then click Disconnect.
By hand
This works with any host and no extra plugin. But you must get every step right yourself.
In phpMyAdmin, select your site’s database and click Export.
You get an .sql file.
At your hosting, create an empty database and a user.
Note the name, user, password and database host.
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.
Upload the site folder’s contents into the domain’s folder with FTP.
The folder is usually
public_html,httpdocsorwww.At your hosting, enter the new database details in
wp-config.php.Name, user, password and host.
Replace
http://localhost/yoursitewithhttps://your-domain.comin the database.Use
wp search-replaceor Better Search Replace. Never replace it as plain text in the .sql file: why.
How you know it worked
- Your domain opens the site with all pages and images.
- You can log in at
/wp-adminwith your usual login. - No link or image points to
localhostoryoursite.testany more.
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.
wp2wp.link walks you through the copy from XAMPP, MAMP or Laragon, step by step.
Start your moveFree · No account
Sources, checked 18 November 2026
Reprint on WordPress.org, Reprint limitations, wp search-replace.
Was this page helpful?
Thanks for letting us know.
Thanks for letting us know. What was missing or wrong? Write to benni@wp2wp.link, we read every message.