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 trialAdam Duffield
30,494 PointsUsing Rewrite rules in apache with Xampp on windows, keep getting errors?
Hey,
I've been trying to nail rewrites for months now in several different ways! I've tried almost every tutorial I can find online. I've opened up the http config file changed the overides to all and made sure that the mod rewrite rule is uncommented but i still get server error when i restart xamp and uncomment my htaccess file.
Heres my htaccess code below:
Rewrite Engine on
RewriteRule ^/?profile\.php$ index.php [L]
If anyone could help with this I would be amazed! I've been trying and failing with this one for a long time.
1 Answer
Jason Anello
Courses Plus Student 94,610 PointsHi Adam,
You have a space in the Rewrite Engine
directive.
Have you tried it without the space?
Adam Duffield
30,494 PointsAdam Duffield
30,494 PointsI love you...
Adam Duffield
30,494 PointsAdam Duffield
30,494 PointsBut on a more serious note! haha, cheers for that Jason! I've been trying to do this for a long time! Apache is so incredibly picky with its syntax! and all the error messages I've had over months have probably not helped me either!