Forum Moderators: coopster & phranque

Message Too Old, No Replies

serve CGI page as home page

         

Slud

3:24 pm on Feb 15, 2002 (gmt 0)

10+ Year Member



Any suggestions for serving up a messy URL like
"/cgi-bin/script.pl?var1=bar&var2=foo" to requests for "/"?

Frames work (but suck for a lot of reasons)

.htaccess Redirect works, but isn't ideal

Apache blows up if I try DirectoryIndex /cgi-bin/script.pl?var1=bar&var2=foo

To cap it off mod_rewrite isn't available on the server

Damian

3:57 pm on Feb 15, 2002 (gmt 0)

10+ Year Member



You could use a virtual include in /index.html which would contain only this line:

<!--#include virtual="/cgi-bin/script.pl?var1=bar&var2=foo " -->

edited: You would need to parse .html files for virtual includes for this to work.

mdharrold

4:19 pm on Feb 15, 2002 (gmt 0)

10+ Year Member



Why isn't .htaccess Redirect ideal?