I’m going to move my blog from http://blog.wordfruit.com to http://wordfruit.com/blog
the main Wordfruit site is in PHP and the blog is WordPress.
I know I can make the change at wp-admin/options-general.php
…I want to make sure I don’t create problems when I make that change…
-
Do I not need to create any folders etc on the domain? Will they just create themselves when I make the change?
-
Can I redirect the old urls to the new urls from within the WordPress account?
-
Are there any other things I need to account for in making this change?
Cheers, Richard
First you should read the Codex entry on domain moving
http://codex.wordpress.org/Moving_WordPress
But in a nutshell: aside from moving your contents phisically to the /blog location, all you have to do is search and replace every SQL entry for the previous domain (instead of just changing the domain in WordPress options). Doing this by hand is pretty dangerous, I found this script to be very helpful:
https://interconnectit.com/products/search-and-replace-for-wordpress-databases/
Backup your database (eg. with PHPMyAdmin) in SQL form, then upload the above php script to your host folder, and point your browser to it. Using it you can safely search & replace http://blog.wordfruit.com to http://wordfruit.com/blog.
All your post contents and options will be then rewritten to the new domain. What possibly could remain is your page template – if you made it yourself, I’d also download and search the contents the theme folder for possible hard links to the old domain.
I have played with those options myself and would recommend doing this instead.
I know this seems strange given the settings but whenever I used the change domain settings it didn’t work and it broke the site, I then had to manually change it back through wp_config.php.