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
Maria Brooks
3,776 PointsEnhancing a simple php application - Adding Search Controller view
As I begin each new module, I first download the project zip file to have the starting code for that module.
I downloaded the project zip file and moved it to htdocs, overwriting all files from previous lesson.
I launched MAMP and opened the site in Firefox and see the Home page just fine. When I click on the Shirts link I get the directory tree. Then if I click on Shirt or Shirts the page is not found.
Not Found the requested URL /shirts/131/ was not found on this server
Why doesn't the site work on my local machine with MAMP, when I just downloaded the zip file from this lesson? I've made no changes to code, I just wanted to visit the site to make sure everything worked.
Regards, Maria
1 Answer
Maria Brooks
3,776 PointsI figured out my problem. The htaccess file isn't in the project zip file I download.
I saved the code for htaccess in a text file that I now use to recreate the htaccess file each time I start a new module.
Please disregard this issue.
Regards, Maria