It works perfectly. I was able to migrate the live site to the root directory using the Codex link you provided. I’ll remember the search box.
One problem though: I followed all steps outlined in Codex article but afterwards, I foolishly removed the Settings> General > WordPress Url and now I’m getting a 404 Not Found error whenever I try to access WP admin. Can you help me fix this?
See http://pastebin.com/2TcqYy8u
Use your host’s database tool (usually phpMyAdmin) to add it back to the wp_options table siteurl field.
Did you fix this? In general, you can get to your admin by using the full url so rather than going to /wp-admin, you can sometimes get there by going to wp-login.php.
@optiqal –
I foolishly removed the Settings> General > WordPress Url
You have to go to the database to add it back; there is no value in there now to add the wp-login.php to 🙂
There are 2 fields in Settings> General > WordPress Url and Settings> General > Site Url
Site Url is the only one that was changed when I migrated the site to the root folder following this article:
http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory#Using_a_pre-existing_subdirectory_install
After successful migration, I foolishly thought why not change WordPress Url too. I now understand that WP redirects to old location. In phpmyadmin > wp_options there is a field for SiteUrl but none that I saw for WordPressUrl. There are 15 pages in this wp_options table and I looked at all of them. See http://tinypic.com/r/262kxh1/8
Update: I read http://www.inmotionhosting.com/support/website/wordpress/wordpress-changing-the-site-url-and-home-settings and there is a field for WordPress Url called home in wp_options and I changed it back to the pre-migration url. However, I’m still unable to access WP admin using pre-migration url which should be the correct url.
By the way, I noticed that I can access the site from both the pre-migration url and the new url. Shouldn’t visitors only be able to access the site from the new/root url?
Update: I reinstalled WordPress in the root folder and it took me 2 days to get the site back up and running after using the sql backup.
I learned my lesson. ALWAYS follow WordPress Codex to a T and NEVER change WordPress URL in admin > Settings > General.
This was my first time installing WordPress in a sub-directory.
Thanks for everyone’s help.
There’s a pretty cool plugin called Velvet Blues Update URLs. We use it a lot when migrating sites to different domains. Not sure it would be the best tool in your case but something to keep in mind.
Hi i migratie a couple of wp sites from sub-dir tot root like this:
http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory#Using_a_pre-existing_subdirectory_install
Now i’mdoing exactly the same but still got a blank page. and don’t know how to fix it.
the backend still working. but the front won’t work
i use 3.9.1 with a canvastheme ( woothemes) has any one the same and solved it?