Joined: 03 Aug 2007 Posts: 412 Location: A'dam/Diemen, The Netherlands
Posted: Sun Jan 24, 2010 12:57 pm Post subject: [WordPress] A quick guide when changing urls, subdomains, or subdomain
Creating the dump/export
Make a full backup of your current online files
Make a full backup of your current database using PhpMyadmin, do NOT use a plugin to make a backup
Setting up the new host (Only when not on the same server)
Create webspace / set up FTP ( write these down ! )
Create a database with user and password ( write these down ! )
Transfer files
Transfer the files to their new location/server/directory
Do not forget any robots.txt and google verification .html files
Transfer database (Only when not on the same server)
Import your database using PhpMyadmin
Edit wp-config.php using values from 2b. (Only when not on the same server)
Code:
// ** MySQL settings - You can get this info from your web host ** //
/** The name of the database for WordPress */
define('DB_NAME', 'database_name_here');
/** MySQL database username */
define('DB_USER', 'database_user_here');
/** MySQL database password */
define('DB_PASSWORD', 'database_pass_here');
/** MySQL hostname */
define('DB_HOST', 'localhost'); // Mostly (99%) localhost
Update website url in database (Only when changing URL !)
Open your options table (phpmyadmin) and edit the siteurl and home option values into your new URL location
Do not add a / at the end.
Permisions and file uploads
Make sure any plugin or upload directories are writable by PHP/your webserver
Log in at /wp-admin/ and go to miscellaneous settings ( options-misc.php ).
Now edit/update this folder: "Store uploads in this folder" (Only when changing URL !)
Still not working? Fix: Did you by accident hardcode the FTP username etc in the wp-config.php file?
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum