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

Martin La Touche
Martin La Touche
1,709 Points

I have uploaded my site files but only the homepage is showing. Other pages show 404 error.

I have uploaded all of my site files to the host. When I enter my url I get the homepage but clicking on the links gives me pages with a 404 error. Why would this be as everything worked fine on my local server? Also, possibly related to this, why has my front page slider corrupted and now shows all pictures in a column rather than in the slider?

3 Answers

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!

Jonathan Brusby
Jonathan Brusby
951 Points

Thank you for this advice Brennen.

I was getting a problem where all the pages on my live site were bringing up a 404 error, because the links were trying to go to 'localwp.com/index.php', despite having run the Search and Replace. I tried activating another theme which didn't work. What did work was deactivating all the plugins, as you suggested. The pages worked fine without plugins running, then when I activated each plugin one by one the pages still worked. So clearly the plugins were causing a conflict and needed a reboot.

Michael Lorenzana
Michael Lorenzana
12,029 Points

I had the same problem and tried out the link and it wasn't my plugins or my themes. The solution that resolved my issue was changing the permalinks to "Post Name" in the common settings. Hope this resolves your issue.

Jennifer Nordell
seal-mask
STAFF
.a{fill-rule:evenodd;}techdegree
Jennifer Nordell
Treehouse Teacher

It sounds like the paths you're using to your other pages and possibly CSS files aren't relative paths. Check to make sure the paths are correct.

Martin La Touche
Martin La Touche
1,709 Points

Hi Jennifer, how do I do that? I'm re-uploading my wp-content folder at the moment hoping it is just some corruption in the plugin file. I have my fingers crossed but if that doesn't work I'll check the paths if you can tell me how to do that.

No, no difference there!! Very frustrating