On Monday 15 May 2006 00:31, Chad Perrin wrote: > I have Perl/CGI scripts whose output I'd like to include in an SHTML > page. For instance, foo.shtml should include output from bar.pl (which > is located in the cgi-bin directory). Server Side Includes (SSI) seem > to be my only option for making this work, unless there's something I'm > missing. My reasons for wanting to do this are two-fold: > > 1. I don't want to have cgi-bin/ in the URLs for the whole friggin' > site. > > 2. The base site already exists, and I don't want to have to change > the URLs or rewrite everything to run from CGI scripts right away.
Have you considered trying mod_rewrite? Your host may have it if it runs apache. Try using something like this in your .htaccess-file: RewriteEngine on RewriteRule ^<some regex>$ cgi-bin/foo.pl I use this to avoid ugly urls likt this: Rewriterule ^(script)/(var1)/(var2)/(var3)$ $1.php?var1=$2&var2=$3&var3=$4 This way this... site.com/index/foo/bar/123 becomes site.com/index.php?var1=foo&var2=bar&var3=123 -- Bjørge Solli - Office:+47 55205847 http://www.nersc.no Nansen Environmental and Remote Sensing Center - Bergen, Norway Dept.: Mohn-Sverdrup Center for Global Ocean Studies and Operational Oceanography -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>