Hi,

I have a perl cgi application, not mod_perl, but an actual .cgi application running under apache on OS X.

As many web apps, it makes use of some long get requests with variable labels and values. For example:

http://server.com/cgi-bin/app.cgi?t=new.htm&c=jlpnew.html

I wrote a working url mod_rewrite rule for apache, but instead of the .cgi executing, it just returns the source code of the cgi.

Here are the rewrite rules:

RewriteEngine On
Options +FollowSymlinks
RewriteBase /
RewriteLog /Users/flint/logs/mod_rewrite_log
RewriteLogLevel 8
RewriteRule ^/showpage/([0-9]+)$ /cgi-bin/app.cgi?c=pc2.htm&b=photo_db&UID=$1
RewriteRule ^/showimage/([0-9]+)$ /cgi-bin/app.cgi?c=pc2.htm&b=photo_db&UID=$1

Any idea what I am doing wrong, why it just returns the cgi source text? It works fine with the actual urls, so I know everything is working normally, just not with the rewrite rule.

Thank you in advance, and I will be sure to summarize and post the solution when I get it worked out.

Regards,
Blake

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to