WordPress.org

Ready to get started?Download WordPress

Forums

Difficulties Migrating xxx.com/v2/ to xxx.com root directory (5 posts)

  1. mikeshu
    Member
    Posted 2 years ago #

    Hi All,

    I'm a novice at using wordpress and I was helping my girl develop a new site in a subdirectory /v2/ of her site (keeping the old one alive until update is ready) and we were in the process of moving it into the root directory. The site is hosted by GoDaddy so the installation of wordpress and database management is through its interface.

    We are using the Core template, if that makes any huge difference.

    A friend forwarded instructions of migrating a wordpress site from one location to another and that had two options of either just exporting the wordpress XML or using a plugin to export the SQL database. When installing a default wordpress site at the root directory, and importing the xml failed, I went the SQL route and it seemed to work... but I think things actually got more screwed up.

    When navigating to the site's route directory, things seemed to work okay... except when clicking links in the site, all sites went to the v2 subdirectory. Furthermore, attempting to log in took me on an infinite loop of taking me into another login screen. So no logging in. When I looked further into the issue I realized the instructions given to me did not cover moving sites within the same domain, thus the issues.

    I decided to uninstall the root directory wordpress and start over from our v2 wordpress. After uninstalling from GoDaddy, the v2 subdirectory wordpress broke... seems to load yet is a skeleton of itself. Thankfully I backed everything up...

    I'm at the point where I need to start completely over... question is... how? With the backed up files, how do I restore the site to the proper root directory? Do I recreate v2 subdirectory site then try to migrate over to root again? Or just restore at root directory and hope it doesn't go crazy looking for the v2 folder?

    And what would be the safest way to do this?

    I know it's kind of a messy situation, but any help would be greatly appreciated. Thanks!

  2. iand
    Member
    Posted 2 years ago #

    This should be what you need: http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory See the section headed "Using a pre-existing subdirectory install".

    You were pretty close with a running copy in the /v2/ folder, you just got the moving bit wrong. You're right - you were trying something more applicable to when you move hosts.

    If you can get your /V2/ install up and running correctly again it should be easy enough to follow the instructions and get things working again.

  3. mikeshu
    Member
    Posted 2 years ago #

    Thanks for the link! Yes those are the instructions I should have been following.

    Here's where I'm at now after wiping the slate clean, though.

    Within GoDaddy, uninstalled wordpress from both the root directory and the /v2/ then started by reinstalling wordpress to v2

    I then reinstalled the Core theme, not yet importing the xml export backup.

    THEN I imported the old working site's XML to restore, but everything's kinda glitchy. Theme settings apparently not coming through and there are a lot of gallery, menu, etc settings that we have to redo. I was wondering where we could have gone wrong and if we can get things exactly as they were before? Or is this just a natural side effect of moving a wordpress site with a complex theme?

    Thanks!

  4. iand
    Member
    Posted 2 years ago #

    My first reply got eaten somehow.

    I'm going to guess that the siteurl is wrong and that is why things are playing up. If you changed it before you exported the sql then its going to need changing back: http://codex.wordpress.org/Changing_The_Site_URL

    I doubt its something with your theme, unless you have hardcoded links in there or something. If it was working before it should be ok now!

    If you have a link to your site, it would help people in taking a look.

  5. mikeshu
    Member
    Posted 2 years ago #

    Thanks Ian!

    Well I sorta thrashed the site by now so not much to look at for now, but I'll definitely dig into the SQL as the link you sent me talks about. I'll report back with results. Thanks!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.