Halty's wordpress tools

Wordpress mover v0.7

The script moves your Wordpress database and all files to a new place. It uses several speed-up tricks to make transfers much faster than a normal FTP transfer. It makes all necessary fixes in the MySQL database and wp-config.php so that your Wordpress works properly.

This script is basically an automated implementation of the official Moving Wordpress guide and replaces all steps (FTP transfer, mysql export/import, fixing home and siteurl in the wp-options table via phpMyAdmin, etc).

The script is tested to work with Dreamhost, Godaddy, Hostgator, Bluehost, Hostmonster, and 1and1. It will also work with any host that uses cPanel.

This script will move your Wordpress installation:

  • To a new webhost or server
  • To a new domain
  • To a new folder
  • From your local computer to remote website

Here's what it will do for you:

  • The script will transfer all files, plugins, settings – everything, in seconds. No time wasted with copying files via FTP.
  • The script will automatically import your MySQL database
  • The script will fix your Wordpress configuration to point to the new location (siteurl and home in wp-options table)
  • The script will automatically fix all links in the database – it will replace all links to your old website to your new website in all posts and comments.
  • The script is safe, as it does not change anything on your source server; it only updates stuff on target server.

The only thing you will need to do manually is create a MySQL database on your target server (unless you already have your mysql database name, login and password).

Supported Wordpress versions

  • Wordpress 2.x, 3.x

How to use

Step 1. Create a new database on your TARGET website/server (exactly like you did when you were installing wordpress for the first time) and note database name, user and password.

Step 2. Upload halty_source.php into your SOURCE wordpress root directory (i.e., where you have your index.php)

Step 3. Upload halty_target.php into your TARGET wordpress root directory (where you want your index.php to go to)

Step 4. Open halty_source.php in your web browser and enjoy!


Q: I am moving my wordpress to another webhost or server, and I have already moved the domain. How do I run halty_source.php?
A: You do not need to move the domain before invoking halty_source.php. Target server is accessed by IP address, however, source server still needs a domain name. It could be any name, so if you have already moved your domain, then you could use a temporary domain name. You could also make a subdomain of your domain to point to the old server. Any way of accessing halty_source.php via browser will do the job just fine.

Q: Does this script leave source files intact?
A: The script will not change anything on your source website. It will only patch the target website during the move.

Q: I am getting HTTP/1.1 413 Request Entity Too Large error
A: There is an issue with your TARGET web host. You will need to contact them and ask to increase the maximum allowed size of a POST request in their reverse proxy server (NOT in php.ini).




This software is released under GPLv3 license.


initial release

Data is now transferred in multiple iterations to overcome script execution time limits. I had to use Javascript to achieve that, so the script now requires javascript.

Now script does not rely on shell_exec or mysql command availability (will use internal mysql import-export engine)

Fixed occasional Invalid header error while transferring 10000+ files
Fixed Internal Server Error with Godaddy webhosting

Added curl support for hosts that keep allow_url_fopen disabled. This fixes the "URL file-access is disabled in the server configuration" error message.

Better support for mixed urls in the database (www vs no-www) - will now convert both variants.

Better support for capital letters in urls in the database (blog vs BLOG).

Copyright © 2011–2018 Halty