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
Andres Dominguez
Courses Plus Student 172 PointsEnabling mod_rewrite in Xamp for the clean URL exercise
Hi guys, i am doing now the : Cleaning URLs with Rewrite Rules -> Introducing Rewrite Rules
But i am stuck, in the first part, in the .htaccess file configuration i already put this: RewriteEngine On RewriteRule ^shirts/$ /shirts/shirts.php
And when i go to my localhost/shirts/ to see if it works an Error 404 shows up, everything else works fine, it looks like the mod_rewrite for Apache does not work but i tried this solution: Checking if the rewrite_module was uncommented on conf folder and to put this on the <Directory>...
Options Indexes FollowSymLinks ExecCGI Includes AllowOverride All Order allow,deny Allow from all
But still doesnt work i even restarted the server and everything any ideas on what might be wrong! Thanx
2 Answers
Hampton Paulk
5,093 PointsGood Morning! - Would you mind checking to see if mod_rewrite extension is enabled in XAMPP? Take a brief look at this article and let me know if this solves your issue.
Andres Dominguez
Courses Plus Student 172 PointsHi Hampton, thanx for the help, i fixed what u recommended on the article but it is still not working, any other ideas on what could be wrong! thanx
Hampton Paulk
5,093 PointsGo ahead and post your htaccess to https://gist.github.com/ and I will take a look and see what I can find.