Jump to content

Welcome to the forum:

Welcome to the iThemes, PluginBuddy and WebDesign.com forum. We've created several tutorial video's to help you get you started with using the forum, please check them out!

Also take note of the forum guidelines.

Support hours:

Our moderators actively respond to forum support requests during normal business hours which are Monday-Friday, 8am - 5pm Central Standard Time, typically within one business day. Although some moderators choose to work during the weekends, we can not guarantee immediate attention to your requests. Thanks for understanding.

What is included with support:

Premium support includes theme/plugin issues such as: bugs encountered under normal operation, how to use basic features, basic WordPress help, and basic help with customization (meaning we point you to resources and will help in more depth as time allows). More information.

Migrate Wordpress From Subdomain To Subdirectory

subdomain subdirectory

This topic has been archived. This means that you cannot reply to this topic.
2 replies to this topic

#1 Guest_Dave Trowbridge_*

Guest_Dave Trowbridge_*
  • Guests

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.

#2 Dustin Akers

Dustin Akers


  • Moderators
  • Others: All Plugins, All Themes
  • 20,451 posts

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

Welcome to the forums. Be sure to post your questions in the correct forum and don't forget about the new and improved search function located in the top right of the forum pages. The gear/wheel symbol next to the search box will give you more options for advanced searching. Thank you and have a nice day.

#3 Guest_Dave Trowbridge_*

Guest_Dave Trowbridge_*
  • Guests

Posted 12 April 2012 - 12:15 PM

Great! Sounds easy enough. Thanks.