Re: RewriteRule
| From: | Yeti | Date: | Mon, 13 Oct 2008 13:20:21 +0000 |
| Subject: | Re: RewriteRule | ||
| References: | 1 2 3 4 5 6 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-281793@lists.php.net to get a copy of this message | ||
You are absoloodle right about that. Although I'm not sure about their
greediness, which might be different.
I prefer the '{0,}' in my rewrite rules because I usually define the
max-length to prevent code injection.
eg.
# to make sure only the first 8 chars get passed on to PHP
RewriteRule ^blog/([^/]{0,8} index.php?a=$1 [NC,QSA,L]
So that's why they ended up in my reply.