cgiapp:

Johan Kuuse wrote:
> in Apache 1.3) and the RedirectMatch directive: ...

David Emery wrote:
> RewriteEngine On
>
> # If you want it to redirect only in the case where there is no real
> # file or directory at the requested location, then un-comment the
> # following two lines 
> ##RewriteCond %{REQUEST_FILENAME} !-f
> ##RewriteCond %{REQUEST_FILENAME} !-d
>
> RewriteRule ^(.*) myscript.cgi

Thanks for the suggestions.  :-)


More background -- my goal is to write an .htaccess file and Perl 5.8 C::A
script to handle all incoming requests on Apache 1 and 2 virtual hosts in shared
hosting environments where I don't have root access.  I want the incoming script
to be able to see what URI was requested, so it can decide what to do -- send a
static file, generate a page dynamically, etc..  I would like to avoid mod_perl
due to version 1, 2, and transitional (1.99*, etc.) API incompatibilities.


I think a redirect is out because the original URI would be lost (?).


Perhaps a rewrite is what I need.  For example, if the user asks for
http://hdwf.holgerdanske.com/foo.html, rewrite it to
http://hdwf.holgerdanske.com/index.pl/foo.html.  index.pl should get the
rewritten request, and should be able figure out what the original request was.
I'll see if I can get that idea working and post any results.


David


---------------------------------------------------------------------
Web Archive:  http://www.mail-archive.com/[email protected]/
              http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to