[thelist] mod rewriting question
Stephen Rider
evolt_org at striderweb.com
Tue May 15 11:05:28 CDT 2007
On May 15, 2007, at 10:31 AM, misterhaan wrote:
> Stephen Rider wrote:
>> RewriteRule ^(0-9){4}/(0-9){2}/(0-9){2}/(.+?)/?$ /archives/$4/
>> [R=301,L]
> does it work with parentheses? i've always used brackets to match a
> range of characters:
>
> RewriteRule ^[0-9]{4}(/[0-9]{2}){2}/([^/]+)/?$ /archives/$2/ [R=301,L]
You are correct. My error.
Stephen
More information about the thelist
mailing list