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!

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

PHP Enhancing a Simple PHP Application Cleaning URLs with Rewrite Rules Introducing Rewrite Rules

why >_>

RewriteEngine On
RewriteRule ˆflavors$ 

not correct?

2 Answers

Andrew McCormick
Andrew McCormick
17,730 Points

you're close. the question ask you to match the pattern http://localhost.com/flavors/ . You are not looking for the "/" at the end of the patter. So you'll need to add /$ instead of just $
See the video about the 3:30 mark

Also, in case it still doesn't work, I had to retype your carrot sign (^) into the challenge for it to work. make sure you are using the carrot that is shift+6 on your keyboard.

yeah, it was actually the carrot sign >_< I had to add a space after shift+6, so that it appeared bigger on the screen. I guess that way it becomes the proper character.