Solved

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

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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Ever wondered how to display how many visitors you have online. In this tutorial I will show you an easy but effective way to display the number of online visitors in WhizBase. In this article I assume you have read my previous articles and know …
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 strings in Python: declaration, operations, indices, and slicing. Strings are declared with quotations; for example: s = "string": Strings are immutable.: Strings may be concatenated or multiplied using the addition and multiplic…
Learn the basics of modules and packages in Python. Every Python file is a module, ending in the suffix: .py: Modules are a collection of functions and variables.: Packages are a collection of modules.: Module functions and variables are accessed us…

759 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now