Moving a WordPress website
Wow, what a morning.
In a matter of minutes, I tried to do two things in WordPress, one upgrade and one switching of a site to a new folder and…I broke both sites.
I read the instructions in the codex for moving a website to a new folder. (Taken from the WordPress website –
http://codex.wordpress.org/Moving_WordPress)
Here are the step-by-step instructions:
- Create the new location using one of these two options:
- If you will be moving your WordPress core files to a new directory, create the new directory.
- If you want to move WordPress to your root directory, make sure all index.php, .htaccess, and other files that might be copied over are backed up and/or moved, and that the root directory is ready for the new WordPress files.
- Login to your blog.
- Go to the Administration > Options > General panel.
- In the box for WordPress address (URI): change the address to the new location of your main WordPress core files.
- In the box for Blog address (URI): change the address to the new location, which should match the WordPress address (URI).
- Click Update Options.
- Logout of your blog.
- (Do not try to open/view your blog now!)
- WordPress 2.0 only: Delete the folder wp-content/cache.
- Move your WordPress core files to the new location. This includes the files found within the original directory, such as http://example.com/wordpress, and all the sub-directories, to the new location.
Well, I followed the instructions. I applied changes and I got a 404 error page saying that wp-login.php didn’t exist.
So, I just figured that since the directory was pointing to a new place now, it wouldn’t be finding the files. But the instructions said nothing about a 404 error message that would give no indication of whether the changes were actually applied or not. Not to mention, the instructions didn’t remind you to make the directory and make a copy of the files first, before applying any changes. That was my mistake.
So, for an hour while I copied the files on the server, I had no idea if what I just did was going to work or not.
Forunately, it did. I felt better. But then, there was the upgrade on the other blog.
Here are some similar arcade posts
- How do I save my action files? How do I bring / import my actions into a newer version of Photoshop?
- Upgrading Rotheblog to WordPress 2.3
- How do I get rid of / disable the sidebar in WordPress? Templates, of course.
- My Top 5 ‘Must Have’ Plugins for WordPress
- New WordPress install? First thing to do, setup permalinking!
If you enjoyed this post, please consider to leave a comment or subscribe to the feed and get future articles delivered to your feed reader.
Comments
No comments yet.
Leave a comment
Your email address is never displayed and cannot be spammed. If your comments are excessively self-promotional you will be banned from commenting. Read our comment privacy policy.