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

Joel Rivera
Joel Rivera
29,401 Points

Converting and Transferring my site?

Hello,

A while back I coded my site in php and added a wordpress blog. So all my pages were not in wordpress. Now I want to convert my entire site to wordpress and have it all in the root directory. I'm also changing my hosting provider. I watched the videos in Building a wordpress theme on migrating the site but just wanted to ask if there are additional steps needed for this type of updating and migration? I would assume I would need to do a redirect of the old pages that ended in .php to reflect the new permalinks. Is this correct and is there anything else I should do?

Thanks all

1 Answer

Zac Gordon
STAFF
Zac Gordon
Treehouse Guest Teacher

Hi,

It should be a fairly straightforward process, just like transferring from one domain to another. You're also right that you want to setup a general redirect to point posts from /wp/blog to /blog/ or whatever the format is that you're using.

You should also run something like the search and replace plugin http://wordpress.org/plugins/search-and-replace/ to change any hardcoded urls that would appear in the DB for images. Search for http://old.com/url/ and replace with http://new.com/ without the blog subdirectory you used initially in the url.

Hope this helps!