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 trialJose Colindres
3,179 Pointsindividual shirt pages not working
When Im on the shirts.php or index.php page and click on a individual shirt, the individual shirts does not work. I used the zip file from this project. I did not see a .htaccess file in it. Should i have mod_rewrite activated??? Because I just get that the page cant be found.
1 Answer
Stephen Pierce
12,047 PointsI am experiencing the same issues. Project files downloaded, navigating to a particular shirt page (ie. /shirts/101) results in a page not found. Up to Part 3 of this course I wasn't experiencing any issues. I am using MAMP, and the httpd.conf file doesn't appear to offer any sort of rewrite line. I've also moved all site files to the htdocs folder on the MAMP App to ensure there wasn't an issue with a lengthier file path and I am still encountering the same problem. Any thoughts?
Margeaux Spring
34,865 PointsMargeaux Spring
34,865 Pointsi had to add the .htaccess file to the project folder with some mods on my shirt pages paths in the .htaccess file to get those pages to work:
<p>RewriteRule ^shirts/([0-9]+)/$ /shirts4mike/shirts/shirt.php?id=$1</p>