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 Theme Development Building Page Templates in WordPress The page.php File

Louis Samuel
Louis Samuel
12,529 Points

Struggling to sort out permalink settings

I'm having real problems here, tried everything suggested here https://teamtreehouse.com/community/permalink-settings-2 but things have got messy.

I'm using xampp on windows, have enabled the rewrite module.

Current situation, things work fine when permalink settings are set to plain but i'm getting a 404 on all the other settings.

What's messy? Well, when i'm getting the 404 it's pulling everything in from another wp install i have in a different directory in htdocs and displaying the 404 as post/page content......Obviously this looks nicer than the normal 404 page but not really what i'm after haha.

I'm assuming this means i have a problem with the xampp server but I can't work out what's going on here....

From poking around it seems the .htaccess file is updated when permalink settings changes are saved.... is this right?

Any help would be much appreciated!!!

1 Answer

Jason Scott
PLUS
Jason Scott
Courses Plus Student 10,265 Points

I just solved my 404 issue by " sudo chmod -R 777 ./ " in the main /www/ folder in my ampps installation. (htdoc folder for other versions of local server). I know 777 isn't the best, but hope that helps :)