Replying to Migrate Wordpress From Subdomain To Subdirectory
Topic Summary
Posted 12 April 2012 - 12:15 PM
Great! Sounds easy enough. Thanks.
Dustin Akers
Posted 12 April 2012 - 10:21 AM
Hi Dave,
That can work fine and would be a normal migration, nothing too special. Would make the subdirectory folder if it doesn't already exist, though if it does already exist then make sure there isn't a WordPress installation already there (which would need to be removed if so). Then create a database for the new folder with associated user that has all privileges (remember the settings you have for this database as will need to know them later such as database name, user, etc). After that is just uploading the full backup made from the source site and an importbuddy.php file then starting the importbuddy by navigating to it in your web browser. For example: www.domain.com/blog/importbuddy.php
Also could be a good idea after the migration to regenerate a new .htaccess file for the new site by going to Settings -> Permalinks -> and clicking to save changes. Is more of a good practice overall.
Sounds like you've already looked around at some information available but here are some more in case you haven't seen these ones:
Sample migration video
BackupBuddy Getting Started codex page
Importbuddy's Codex page
Thanks,
-Akers
That can work fine and would be a normal migration, nothing too special. Would make the subdirectory folder if it doesn't already exist, though if it does already exist then make sure there isn't a WordPress installation already there (which would need to be removed if so). Then create a database for the new folder with associated user that has all privileges (remember the settings you have for this database as will need to know them later such as database name, user, etc). After that is just uploading the full backup made from the source site and an importbuddy.php file then starting the importbuddy by navigating to it in your web browser. For example: www.domain.com/blog/importbuddy.php
Also could be a good idea after the migration to regenerate a new .htaccess file for the new site by going to Settings -> Permalinks -> and clicking to save changes. Is more of a good practice overall.
Sounds like you've already looked around at some information available but here are some more in case you haven't seen these ones:
Sample migration video
BackupBuddy Getting Started codex page
Importbuddy's Codex page
Thanks,
-Akers
Posted 11 April 2012 - 10:36 PM
We are considering BackupBuddy both for migration and backup (and perhaps cloning the site for further development down the road).
What I am unsure of is how to migrate an existing WP installation from a subdomain to a subdirectory. e.g. from blog.domain.com to domain.com/blog on the same server, and what to do about the already existing database (for blog.domain.com )on the site.
I looked at the Wiki, and it doesn't look like this subdomain to subdirectory migration requires any special effort--is that correct?
I assume that the safest option would be to have our hosting company create a new database rather than wiping the existing one during the migration. Then we can have them delete the old database once the site is up and running in its new subdirectory.
What I am unsure of is how to migrate an existing WP installation from a subdomain to a subdirectory. e.g. from blog.domain.com to domain.com/blog on the same server, and what to do about the already existing database (for blog.domain.com )on the site.
I looked at the Wiki, and it doesn't look like this subdomain to subdirectory migration requires any special effort--is that correct?
I assume that the safest option would be to have our hosting company create a new database rather than wiping the existing one during the migration. Then we can have them delete the old database once the site is up and running in its new subdirectory.

