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 Local WordPress Development Local WordPress Development Migrating WordPress from Local to Live Server

Sarah Luna
Sarah Luna
1,261 Points

My test site is in a sub folder I called "Dev" and I can view the homepage but get a 404 error for all others. Any help?

I also get this message "you don't have permission to preview" when trying to edit or add a page or post. I set this test site up on my main domain as such:

www.sarahlunadesign.com/dev

You can see that if you try to view the "Art" or "Sample Page" or "Test Page" you get an error.

I placed this in a subfolder just to test out migrating a site without having to purchase a whole new domain just for this purpose. Does this have anything to do with the fact that it's in a subdirectory?

2 Answers

Jake Anderson
Jake Anderson
11,467 Points

Not at all! This is totally possible and I have actually used this method of creating sites so that my clients can view them before we make them 100% live. When I do it, I install a full version of Wordpress in that sub-directory. You can then log in and make changes in that sub-directory, without making any changes in the public_html folder that your main site is referencing.

Just be sure your sub-directory install is pointing to the database you created for this test site and that your WP_HOME and WP_SITEURL are set to http://www.sarahlunadesign.com/dev

Hope that helps :)

I had this same issue. What worked for me was in this link https://wordpress.org/support/topic/500-internal-server-error-when-moving-website

Pretty much just deactivate all the plug-ins and then see if the other pages worked (which did it for me) then just go back in and reactivate them.

Hope this helps!