|
This script
is a basic redirect script that allows you to place redirect forms on your
pages without using java script. You can put forms on each page, or if you
can use SSI on your site, simply make one text file containing the form,
and then any time you want to add URLs you just have to edit the single
text file!
Configuration:
The first line of the script must be the correct path to Perl, as with all
such scripts:
#!/usr/bin/perl
The only other required items are,
@okay_domains = qw(veinotte.com pass-iton.com perlplus.com);
This is an array containing domains that can use this script. If you have
one domain, just use that. If you are using the script from more than one
domain, add each one seperated by a space. Anyone trying to use the script
from a domain that is not in the list with be redirected to your $home_url
$homeurl = 'http://www.veinotte.com/';
As stated above, the home URL is used if someone tries to call your script
when they shouldn't. Just point it to your front door.
That's it for the configuration!
Your form should look like this:
<form method="post" action="/cgi-bin/send.pl">
<select name="page">
<option value="www.veinotte.com/">Veinotte.com</option>
<option value="www.cgi.veinotte.com/">CGI / Perl</option>
<option value="www.member-manager.veinotte.com/">Member Manager II</option>
<option value="www.ad-eagle.com/">Ad-Eagle</option>
<option value="www.veinotte.com/lamour/">Lamour Site</option>
<option value="www.veinotte.com/main.htm">Site Wide Directory</option>
</select>
<input type="submit" value="Go">
</form>
Again, if
you can use SSI you can make a text file containing the form and then call
it with SSI allowing you to change all of the forms on your site by
editing the one text file.
The call in your pages that you would use to impliment this method would
look like this:
<!--#include virtual="/home/path/to/textfile.txt" -->
One more note: If you wanted the page to open in a new window, or another frame just add a target to the first line like so:
<form method="post" action="/cgi-bin/send.pl" target="_blank">
You should also check out Send Them II!
--> Download all of our programs
by purchasing a members area subscription! It is
only $39.95 per year and you have access to all of
our programs as well as free installation of each of them whenever you
wish!
|