Hi Eric,
try this:
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteBase /script
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !=/favicon.ico
RewriteRule ^(.*)$ script.cgi?param1=$1 [L,QSA]
</IfModule>
Péter
http://extensiblecatalog.org
----- Original Message -----
From: "Eric Lease Morgan" <emor...@nd.edu>
To: <CODE4LIB@LISTSERV.ND.EDU>
Sent: Wednesday, July 01, 2009 4:40 AM
Subject: [CODE4LIB] tricky mod_rewrite
Can someone here help me with a tricky Apache mod_rewrite configuration?
I want to write a script accessible via a URL with the following shape:
http://example.org/script/arg1/
Where script is my (Perl) script and arg1 is some... argument.
How do I configure Apache so script gets executed and passes the
environment variable PATH_INFO along? I suppose I need to use mod_rewrite
somehow. No?
--
Eric Lease Morgan
Head, Digital Access and Information Architecture Department
Hesburgh Libraries, University of Notre Dame
(574) 631-8604