Reprint Relay Get started

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.

By wp2wp.linkUpdated 4 min read

Also as plain Markdown: /agents.md

What to ask the user first

  1. 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.

  2. Access to the old site: a shell with WP-CLI in the site's folder, or a WordPress admin login.

  3. 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.

  4. 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

  1. Download https://wp2wp.link/download/reprint-web.php. Choose a long random password. Make its hash with php -r 'echo password_hash("THE-PASSWORD", PASSWORD_DEFAULT), PHP_EOL;' (any other bcrypt or Argon2 hash from password_hash() works too) and put the hash between the quotes in the line const PASSWORD_HASH = '';. Tell the user the password, not the hash.

  2. Upload the file into the domain's folder on the new hosting (often public_html, httpdocs or www).

  3. Open https://the-domain/reprint-web.php and 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 open http://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.

  4. 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. (--yes approves 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.

  5. Back in the helper, enter the database details and click Start migration. When it's finished, links and images point to the new address.

  6. 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: delete reprint-web.php and the data folder the helper names at the end (usually reprint-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

Was this page helpful?

Back to top