I have a wordpress website for a minecraft server, the server name changed, so the website domain changed. I tried moving the forums to the other url, by coping and pasting all the files but using the same exact database. However, as you use website, it links you back to the original website a lot. If is the problem that the main domain name is inside the mysql database? If i change all domains inside the database, will this fully move the website?
Thanks
Leave a Reply
You must be logged in to post a comment.
In your wp-config.php file, enter the line
define('RELOCATE',true);
Access your login page from http://yoursiteurl.com/wp-login.php, go to settings and change the site url.
Remove
define('RELOCATE',true);
from wp-config.phpWordPress has a whole guide on moving wordpress sites: http://codex.wordpress.org/Moving_WordPress
but the basic step is as follows:
goto: Administration > Settings > General panel, and change the site URLs there to your new url. this should update all post links, etc. in the database.
move files to new host
Moving a WordPress web site is quite well documented here:
http://codex.wordpress.org/Moving_WordPress
If not, it really is just as simple as copying all the files and the database. To avoid FTP transmission errors and such, I have had more luck with compressing all the files into a single .tar.gz file then FTP’ing that to my computer and to the new web site, where I expand it.
Personally, I use cPanel (the most popular web hosting customer account/web site management tool). Their Backup and Restore for the database. And their File Manager’s Compress and Expand to work with the .tar.gz
Changing domain names significantly complicates matters. I use the Search and Replace plug-in to handle hard-coded URLs. Or manually find and replace the URL in the database script.
Run this SQL to change url’s in db.