On Fri, Apr 26, 2002 at 03:00:48PM -0700, Mike Orr wrote: > On Fri, Apr 26, 2002 at 02:46:00PM -0700, Luke Opperman wrote: > > http://www.somewhere.com/products.psp?id=502 > > Are you able to use mod_rewrite with query strings? I've got a > (non-Webware) application that stupidly funnels articles > through > /article.php?article_id=1234 > and I would like to redirect each article to a new URL > /article/1234 > or (in other cases) redirect a few articles while letting all > the others pass thorugh.
Hmm, here's the relevant parts of my mod_rewrite setup: RewriteRule ^/+articles/+$ / [PT,QSA] RewriteRule ^/+articles$ / [PT,QSA] RewriteRule ^/+articles/+([0-9]+)/+plain/? /articles/plain.py?id=$1 [PT,QSA] RewriteRule ^/+articles/+([0-9]+)/+email/? /articles/emtp.py?id=$1 [PT,QSA] RewriteRule ^/+articles/+([0-9]+)/? /articles/index.py?id=$1 [PT,QSA] So, if I understand you right, you want something like: RewriteRule ^/article.php?article_id=([0-9]+) /article/$1 [PT,QSA] and so on. Feel free to ask questions if that's not clear. Best, Kendall Clark _______________________________________________ Webware-discuss mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/webware-discuss