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

Wordpress site redesign - how to move new wp site and replace current live site without breaking anything :)

hi, I really need advice as I'm totally new at this and this is my first client ...

hi! I'm new at this. THis is for my first client .... I'm doing a wordpress site redesign and I want to move my new wordpress redesigned site from testdomain.com/new-urls with changed urls for some pages and some pages are removed from old site configuration.

  1. How do I restrict access to my domain? Just put up a temp file (index file) so that i can move files around? Is there a normal way to do this or just move the current dir to old and put a index file there saying site down?

  2. what do I do about the new-urls? I want to redirect the old urls to new?

  3. move in new code and create a new database ? etc.

Anyway, this has probably been done many times. Is there an article or book or something that I can look at so I don't have to start experimenting :)

Thanks!

2 Answers

Jonathan Grieve
MOD
Jonathan Grieve
Treehouse Moderator 91,252 Points

Hi Karin.

For #1 I would recommend using a local server to do your Wordpress Development, so you don't need to worry about adding pages every time you make a little change. So you just need to put a little landing page on your server to let people know something exciting is coming.

I would recommend the great Local Wordpress Development course to help you do this. This will teach you about importting the database across and how to install Wordpress to your computer and also how to update URLS from local host to your new root URL.

Good luck with your first client. :-)

thanks, Jonathan. I'm planning on using a local WordPress development site, but my question is on the details of replacing the live website with the local website.

Jonathan Grieve
Jonathan Grieve
Treehouse Moderator 91,252 Points

The course will explain everything you need to know on that.

Wordpress works well with phpMyAdmin, you'll need to know how to export and import across databases to client and server and back again/ :-)

Yixi Guan
Yixi Guan
7,927 Points

I recently built a Wordpress site on local server and moved it to a online host.

This link could be helpful: http://codex.wordpress.org/Moving_WordPress#Moving_WordPress_to_a_New_Server

But I didn't follow the exact method as the above link. Because changing url in WP dashboard/settings freaked me out. After changing the url, you can't access to dashboard. But of course you can change it back. It's just scary for me. So I followed another video on youtube: https://www.youtube.com/watch?v=ObTdBaxinoI Please ignore the sexy part. It worked for me. Good luck!