Solved

Redirecting URL to a CGI script instead of an HTML page?

Posted on 1997-06-24
1
156 Views
Last Modified: 2013-12-25
I would like to redirect my URL (say www.me.com) to execute a perl script that will preform some checks BEFORE loading my home page.  I would like to know if it is possible to redirect to a CGI program?  I am running Windows NT with a Netscape Fastrack server.

Any suggestions would be helpful,
Mike
0
Comment
Question by:ferreimi
1 Comment
 
LVL 2

Accepted Solution

by:
Voodoo earned 100 total points
ID: 1828534
There should be at least two ways you can do this. The first (easy, but a few drawbacks) involves creating a HTML index page which simply refreshes the browser to the CGI url:

<HTML><META HTTP-EQUIV="Refresh" CONTENT="0; URL=http://www.yourco.co.uk/">
<HEAD><TITLE></TITLE></HEAD>
<BODY><A HREF="http://www.yourco.co.uk/">Proceed</A></BODY></HTML>

The problem is that very old browsers may not recognise the refresh, hence the href link. This may or may not be a problem depending on the demographics of the kind of person who will visit your site.

The other way is to change the default home page (via the server) to point to your cgi-bin script and directory. I know this is possible in free web servers such as Omni HTTPd and Sambar, but I am afraid I have no direct experience with Fastrack.
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

In this tutorial I will focus on how to use WhizBase as a tool for sending ICQ messages to ICQ. Here I will use a new technology in WhizBase, published in WhizBase 5.1 version. In this tutorial I will use 3 files, pager.wbsp for the processing, e…
This tutorial will discuss fancy secure registration forms, with AJAX technology support. In this article I assume you already know HTML and some JS. I will write the code using WhizBase Server Pages, so you need to know some basics in WBSP (you mig…
Learn the basics of while and for loops in Python.  while loops are used for testing while, or until, a condition is met: The structure of a while loop is as follows:     while <condition>:         do something         repeate: The break statement m…
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question