[WordPress] A quick guide when changing urls, subdomains, or subdomain


min read

My profile

Share this:

[*:48340cb82c][b:48340cb82c]Creating the dump/export[/b:48340cb82c]
[*:48340cb82c] Make a full backup of your current online files
[*:48340cb82c] Make a full backup of your current database using PhpMyadmin, do NOT use a plugin to make a backup

[*:48340cb82c][b:48340cb82c]Setting up the new host[/b:48340cb82c] (Only when not on the same server)
[*:48340cb82c] Create webspace / set up FTP ( write these down ! )
[*:48340cb82c] Create a database with user and password ( write these down ! )

[*:48340cb82c][b:48340cb82c]Transfer files[/b:48340cb82c]
Transfer the files to their new location/server/directory
Do not forget any robots.txt and google verification .html files

[*:48340cb82c][b:48340cb82c]Transfer database[/b:48340cb82c] (Only when not on the same server)
[list=1:48340cb82c][*:48340cb82c]Import your database using PhpMyadmin
[*:48340cb82c]Edit wp-config.php using values from 2b. (Only when not on the same server)
[code:1:48340cb82c]// ** 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[/code:1:48340cb82c]

[*:48340cb82c][b:48340cb82c]Update website url in database[/b:48340cb82c] (Only when changing URL !)
[list=1:48340cb82c][*:48340cb82c]Open your options table (phpmyadmin) and edit the [u:48340cb82c]siteurl[/u:48340cb82c] and [u:48340cb82c]home[/u:48340cb82c] option values into your new URL location
Do not add a / at the end.

[*:48340cb82c][b:48340cb82c]Permisions and file uploads[/b:48340cb82c]
[list=1:48340cb82c][*:48340cb82c]Make sure any plugin or upload directories are writable by PHP/your webserver
[*:48340cb82c]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 !)
[*:48340cb82c]Still not working? Fix: Did you by accident hardcode the FTP username etc in the wp-config.php file?

[*:48340cb82c][b:48340cb82c]Update url “referals”[/b:48340cb82c] (Only when changing URL !)
[list=1:48340cb82c][*:48340cb82c]Update your theme hardcoded paths
[*:48340cb82c]Update your content if they point to an old URL location, use this plugin: http://wordpress.org/extend/plugins/find-replace/

Thanks to [url]http://www.linkedin.com/in/stephanieleary[/url] for mentioning the file upload path

Share this:

Leave a Reply

Your email address will not be published. Required fields are marked *