> On 07 Apr 2004 22:54:17 -0400, [EMAIL PROTECTED] (B McKee) wrote:
> 
> >Yeah, ok, this isn't completely on topic.  Please humour me (or at least
> >flame me politely).  I need to redirect people to a perl-CGI script....
> >
> >I have written a perl script that generates a series of active web
> >pages.  It's in the cgi-bin and works fine when accessed directly 
> >eg:
> >
> >http://www.example.com/cgi-bin/index.pl
> >
> >So, now I want to redirect anyone going to http://www.example.com 
> >to the above link instead.
> >
> >I thought simply putting 
> >   Redirect permanent index.* /cgi-bin/index.pl
> >in a .htaccess file would work - but it doesn't seem to do anything.
> >Googling about seems to say it should work.
> >My ISP does allow .htaccess files as I'm using them elsewhere for auth
> >purposes.
> >
> >What am I doing wrong?  Or what should I be doing instead?
> >
> >Input appreciated.
> >
> >Brian
> 
> This is probably this simplest solution, although it may not be
> the best.
> 
> Why not just move your /cgibin/index.cgi  to be your index.cgi?
> 
> You can tell Apache to use index.cgi as the default page
> 
> <IfModule mod_dir.c>
> DirectoryIndex index.html index.cgi index.php
> </IfModule>
> 

That would make the index.cgi a directory index which means it would be
printed as is rather than executed.  You would also need to turn on
ExecCGI and add a handler for .cgi....

At least that is my understanding....

http://danconia.org


-- 
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