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 trialmalekkaouk
7,304 Points.htaccess ploblems
when I create my the .htaccess it get me this error message when ask for local host
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator at admin@example.com to inform them of the time this error occurred, and the actions you performed just before this error.
More information about this error may be available in the server error log.
Apache/2.4.9 (Win64) PHP/5.5.12 Server at localhost Port 80
2 Answers
Robert Pazo
8,884 PointsHi malekkaouk. Without knowing what you are trying to do with the .htaccess file it is kinda difficult to answer your question properly, but below is a link to a stackoverflow page with a similar error posted. Hope this helps :) http://stackoverflow.com/questions/17674520/adding-htaccess-makes-internal-server-error
Dylan Bailey
654 PointsI had this exact same thing happen to me. You'll want to go into your local host (I'm using WAMP) and locate your httpd.conf. If you're not sure where that is, just google that file name + whatever local server you're using. When you find it, open it up and uncomment the following line:
LoadModule rewrite_module modules/mod_rewrite.so
IMPORTANT
Make sure you relaunch your local server. If you don't, this change won't do anything. Best of luck! :)