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
Dayo Akinkuowo
1,684 PointsRewrite Rules
Question for Randy, under the Introducing Rewrite Rules in Cleaning URLs with Rewrite Rules. I'm having trouble using the .htaccess file. My .htaccess file contains
RewriteEngine On
RewriteRule ^shirts/$ /shirts/shirts.php
The following error shows when I access my http://localhost/Teamtreehouse/Php/Testing/shirts/ directory in wamp
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, admin@localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
1 Answer
Alan Johnson
7,625 PointsI just tested that rewrite rule, and it looks like it's correct. Is there any information in your Apache error log about the error?