Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

Development Tools Using PHP with MySQL Filtering Input for Queries Using a WHERE Clause

the downloaded files don't open in the browser in the same way as the video

Hi! I think I've done everything the video said and when I click in the orange t-shirt it opens the address http://localhost:8888/shirts/108/ and the result is "Not Found - The requested URL /shirts/108/ was not found on this server". Additionally, when I am in the homepage and I click shirts in the navbar, it does't go directly to http://localhost:8888/shirts/shirts.php , instead it goes to a http://localhost:8888/shirts/ where is displayed the following "Index of /shirts <br> Parent Directory <br> shirt.php <br> shirts.php" I´ve downloaded the project files and it happens the same with them. I've noticed that in the video the htdocs folder has a .htacess file in it and the downloaded file doesn't. I need to fix this for being able to go forward in the course,

Thank you for your help, Francisco

1 Answer

Tyler Mayfield
Tyler Mayfield
16,291 Points

First off, you will need to enable hidden files. Then download the project files from the last video and drag the .htaccess file from the recent download to your htdocs folder and you should be back in business!