Hi, I run the program outside of Apache, and it works perfeclty (How I would like). When typed 'http://localhost/1' in browser, the variable number is assigned value 1.
Why mod_rewrite doesn't rewrite URL ??? I'm writing IP address to output program. Thank You Ricardo On Wed, May 27, 2009 at 3:04 PM, Eric Covener <[email protected]> wrote: > > sscanf(strchr(input,'/') + 1, "%d", &number); // extract only > number > > > RewriteRule ^/(.*) http://${prgmap:$1}/ [P] > > > (5) map lookup OK: map=prgmap key=1 -> val= > > Decide whether your passing in something with a slash or not. Does > your program do the right thing when run outside of Apache? > > > -- > Eric Covener > [email protected] > > --------------------------------------------------------------------- > 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: [email protected] > " from the digest: [email protected] > For additional commands, e-mail: [email protected] > > -- Muito Obrigado Ricardo
