[thelist] mod rewriting question

Tom Dell'Aringa pixelmech at gmail.com
Tue May 15 14:35:42 CDT 2007


On 5/15/07, Stephen Rider <evolt_org at striderweb.com> wrote:
>
>
> My corrected version would be:
> RewriteRule ^[0-9]{4}/[0-9]{2}/[0-9]{2}/(.+?)/?$ /articles/$1/ [R=301,L]


Now we're getting somewhere - that seems to work for most articles. It
doesn't seem to work for articles that begin with a number, I assume the $1
doesn't take that into account? (IIRC $1 is some kind of rule shortcut?) Can
we modify it to accept a url like this:

/2006/07/28/10-claims-in-the-bible-on-the-deity-of-christ/

so it goes to

/articles/10-claims-in-the-bible-on-the-deity-of-christ/

Tom



More information about the thelist mailing list