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
Keith Kasputis
11,365 PointsRestarted Enhancing a Simple PHP App
I restarted this course by clearing my htdocs folder and download the files from the first lesson. When I type localhost, I get the index.php as expected but only the cart (paypal) link works. All other links are going to a folder (localhost/shirts/shirts.php & contact.php to /contact/) and not to the linked page. I have check the href (href="shirts.php") which should go to the htdocs folder. I have cleared the browser history but still the can not get the links to work. When I try to type the full address with the .php, the browser still goes to the folder. Previously I had done about 2/3 of this module, was there a setting somewhere I set that is causing this behavior?
4 Answers
David Tonge
Courses Plus Student 45,640 PointsThere's the .htaccess file, that if you did the tutorial all the way through, that's probably still on your folder.
Keith Kasputis
11,365 PointsThanks David. It been awhile since I was working on this module. I don't see the file any longer as I emptied the contents of htdocs folder. The behavior being exhibit is exactly what I now recall as a result of the redirects. Just have to figure out how to get the browsers and/or MAMP to forget the behavior.
David Tonge
Courses Plus Student 45,640 PointsNo prob. You're more than likely going to use the command line interface to find the file. "cd" into the folder "ls -a" to list all items including hidden files and "rm .htaccess"
Keith Kasputis
11,365 PointsThanks again!