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
Alexander Hess
963 PointsApache .htaccess
Those of you who did not use MAMP or XAMPP but instead manually installed Apache, PHP and MySQL in linux just a heads up. If you created a sub-directory in /var/www (Apache's default root directory) and you are trying to do the RewriteRule add the folder where all the files reside so it looks like ^subfolder/file. Be sure to enable the rewrite mod in apache and place the htaccess file in the /var/www directory in order to get the rewrite to work.
If you are running Ubuntu as your server the below command will enable the rewrite mod and then restart the Apache service.
sudo a2enmod rewrite
sudo service apache2 restart
Denny Scott
16,092 PointsDenny Scott
16,092 Points<3