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 From Bootstrap to WordPress Create Bootstrap Styled Theme Templates Creating a Static Page Template with Sidebar

404 Not Found When I Go To A Page

Everything was going good, but when I added my page.php file and click on one of the links in my nav, it now takes me to a Not Found page, I need help getting this to work. Thank you!

Bo Christensen
Bo Christensen
5,924 Points

have you double checked your code? hard to see the error without any code. :)

Konrad Pilch
Konrad Pilch
2,435 Points

HI Brennan Agranoff , could i ask you since 9 months have been pased, how did it went learning for you? what can you do? do you have solid foundation in wordpress? or how?

2 Answers

Make sure the link is linking to the correct page on your page, if it is not then their is you're answer!

How would I make sure of that? Does it have something to do with permalinks? When I click preview page from the settings, it takes me to the not found page.

Michael Hosford
Michael Hosford
2,531 Points

Hi Brennan,

This may or may not be your situation, but when I had the same issue (404 Not Found when visiting a page I had published), the problem turned out to be that when I set Permalink Settings (Settings > Permalinks) to "Day and name", it was not written to the .htaccess file because WP didn't have sufficient write permissions. Once I fixed that, my pages loaded without any further problems.

You can tell if that's the case in your setup by going to Settings > Permalinks and looking at the bottom of the page. If it says "If your .htaccess file were writable, we could do this automatically..." then you either need to set permissions so WP can write .htaccess, or update the .htacess file yourself using a text editor.