Solved

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

Posted on 1997-06-24
1
154 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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

Suggested Solutions

This tutorial will discuss the log-in process using WhizBase. In this article I assume you already know HTML. I will write the code using WhizBase Server Pages, so you need to know some basics in WBSP (you might look at some of my other articles abo…
This article is meant to give a basic understanding of how to use R Sweave as a way to merge LaTeX and R code seamlessly into one presentable document.
Learn the basics of lists in Python. Lists, as their name suggests, are a means for ordering and storing values. : Lists are declared using brackets; for example: t = [1, 2, 3]: Lists may contain a mix of data types; for example: t = ['string', 1, T…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

832 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