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
Bob Sutherton20,160 Points
Having trouble understanding the concept of getting any number of numbers?
I am having trouble understanding the concepts he is introducing in this .htaccess file. It has been unclear to me ever since he introduced this file. What the heck is going on with this?
I could just follow along, copying his code. But I have no idea what I am doing.
More specifically, he is talking about getting numbers as well as any number of numbers?
Can someone please explain what is going on here in minute detail?
The '^' at the beginning means to match something that begins with 'shirts/' then the [0-9] means to match any character zero through nine, then the '+' means match the previous character one or more times. So [0-9]+ would match 0, 01, 000, 3334.
Matches would be: shirts/0 shirts/39 shirts/39393921
It's the URL so from your web browser the request goes to the web server. The web server is where this matching is taking place.
Yes exactly. Any number of numbers just means one or more numeric characters.