Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

WordPress

Migrating a finished site to a live server

Does anyone know how to migrate a site to godaddy? Im having trouble setting up my site. For some reason when I upload my files all my content is gone the plugings are not activited, im using custom post types . I created my DB and have all my DB info in my config.php

2 Answers

Matt Campbell
Matt Campbell
9,767 Points

OK, here's the link to replace.php for WordPress: http://interconnectit.com/products/search-and-replace-for-wordpress-databases/

When I move a site I do this:

  1. Upload all the FTP I need with replace.php minus wp-config.php & export database to a safe place for import later.
  2. Run the WordPress install creating the database.
  3. Drop all the tables in the database and import earlier exported local database.
  4. Change wp_options url to reflect domain name.
  5. Run www.yourdomain.com/replace.php. In the search, search for the local address and replace with live address with no forward slash. Then hit back and repeat the search with forward slash at the end of the domain. EG. www.domain.com and www.domain.com/
  6. Go to admin and resave permalinks.

If you'd like me to break it down further, let me know.

I'm guessing you are working with a Wordpress site.

First, you need to install Wordpress on your godaddy hosting, explained here: http://teamtreehouse.com/library/websites/how-to-make-a-blog/getting-started-with-wordpress

Then, you need to make a zip of the theme file you have been working on. Next, export (it's a plugin you have to download) a .xml file from your site on your local server of posts, pages and images. I think you need to redownload the plugins manually.