Use wp2wp.link from an AI assistant or agent
Short answer
If a user asks you to move their WordPress site to new hosting, you can do most of the work yourself. With a shell on the old site, you run up to three WP-CLI commands. With FTP or SFTP access to the new hosting, you upload one helper file. The last steps happen in the helper's web page: you open it with a browser tool, or the user does. You need no sign-up and no API key. The service is free; please don't abuse it.
Also as plain Markdown: /agents.md
What to ask the user first
Where the site is now: on their computer (Studio, Local, XAMPP, Docker…) or already online. An online site is copied straight from host to host. The helper then needs only the old site's address.
Access to the old site: a shell with WP-CLI in the site's folder, or a WordPress admin login.
For the new hosting: the domain, an empty Database (MySQL, MariaDB) Where WordPress keeps your posts, pages, settings and users. The files hold the theme, plugins and uploads. A move needs both. database (name, user, password, host) and FTP and SFTP The usual way to copy files to your web space with a program such as FileZilla. SFTP is the encrypted version., SFTP or file-manager access to the domain's folder.
Their OK to the terms. Sites with sensitive data must not pass through our server. Move them another way, for example by export and import.
Old site on a computer: three commands
wp plugin install reprint --activate
wp plugin install https://wp2wp.link/download/reprint-proxy-connector.zip --activate
wp reprint-proxy connect --proxy=https://wp2wp.link --accept-terms --background
The last command prints a pairing code such as K7QM-3XDA and keeps a connection to wp2wp.link open in the background. The computer must stay on, with the site running, until the copy is done. If the command says it can't reach the site, add --local-base=http://127.0.0.1:PORT (the address the local web server listens on).
Old site already online: only Reprint
wp plugin install reprint --activate
Without a shell, the user installs Reprint under Plugins → Add New. The new hosting then copies straight from the old site. 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. and the reprint-proxy commands are only for sites on a computer.
New hosting: the helper file
Download
https://wp2wp.link/download/reprint-web.php. Choose a long random password. Make its hash withphp -r 'echo password_hash("THE-PASSWORD", PASSWORD_DEFAULT), PHP_EOL;'(any other bcrypt or Argon2 hash frompassword_hash()works too) and put the hash between the quotes in the lineconst PASSWORD_HASH = '';. Tell the user the password, not the hash.Upload the file into the domain's folder on the new hosting (often
public_html,httpdocsorwww).Open
https://the-domain/reprint-web.phpand log in with that password. The domain may still point to the old host: it then shows the old site or an error. In that case, use the new host's Temporary address Many hosts give a new hosting account an extra address. With it you can open the site before your own domain points there., or ask the user to add a hosts-file entry and openhttp://the-domain/reprint-web.php(both ways). Keep the real domain as the new site's address. Enter the pairing code (for an online site: its address), tick the terms and click Get migration token.Allow the copy on the old site. Site on a computer: run
wp reprint-proxy approve, check that the characters it prints (the key Characters to compare A short row of letters and digits. When you move a site from your computer with wp2wp.link, your old site and the helper on your new hosting both show it.) are the same as in the helper, then confirm. (--yesapproves without asking. Use it only if you created the token yourself a moment ago.) Site online: copy the token from the helper, paste it on the old site under Tools → Reprint Server and click Authorize client.Back in the helper, enter the database details and click Start migration. When it's finished, links and images point to the new address.
Clean up. On the old site:
wp reprint-proxy disconnect(online: remove the new hosting's key under Tools → Reprint Server). On the new hosting: deletereprint-web.phpand the data folder the helper names at the end (usuallyreprint-data).
No shell, only a browser?
Walk the user through the guide at wp2wp.link/#migrate. It asks the same questions and shows each click. It takes about 15 minutes of the user's time, plus the copy. The 3-minute videos show a whole move.
Search this site
GET https://wp2wp.link/.well-known/search?q=… returns the sections of this site that best answer a question, in Markdown, with links. Keywords and whole questions both work, in all six languages. The HTTP QUERY method with the question as the body works too; add Accept: application/json for JSON.
Rules
- Use the database and FTP passwords only for this move. Don't store them.
- 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. reads the old site's whole database and files and changes none of its content. The plugins only store their own settings and the new hosting's key.
- The new site's database must be empty.
- From a computer: up to 50 GB of transfer per move. Host to host: no limit.
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.