[thelist] mod rewriting question

misterhaan misterhaan at track7.org
Tue May 15 10:31:33 CDT 2007


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]



More information about the thelist mailing list