Yep, thats exactly what I needed. And it's very logical. When a range request is made, mod_rewrite sets an environment variable with the corresponding value. Thanks! Problem solved. 2009/4/16 Eric Covener <covener@xxxxxxxxx>: > On Thu, Apr 16, 2009 at 2:52 PM, Ruben Lihet <evilpus@xxxxxxxxx> wrote: >> Where do I have to put the dash "-" ? In this rule: >> >> RewriteRule ^([^/\.]+)/?$ nph-main.cgi?lid=$1&header=%{HTTP:Range} > > > I don't really follow what you're doing with the rule, but I was > thinking more like: > > RewriteCond %{HTTP:Range} (.*) > RewriteRule nph-main.cgi - [E=MYRANGE:%1] > > -- > Eric Covener > covener@xxxxxxxxx > > --------------------------------------------------------------------- > The official User-To-User support forum of the Apache HTTP Server Project. > See <URL:http://httpd.apache.org/userslist.html> for more info. > To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx > " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx > For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx > > --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See <URL:http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx