Hi all,
I have created this piece of CGI code (its probably bloated, but its my
first time!)
I have a few problems with it:

#!/usr/local/bin/perl
print "Content-Type:text/html\n\n";
print "<html><head>\n";
if ($ENV{'REQUEST_URI'} = adl ) {
print "no Good\n";}
#print "<meta http-equiv=Refresh content='2;
URL=http://10.0.12.2$ENV{'REQUEST_URI'}?adl'>\n";}
print "</head></html>"

What I am trying to do is redirect 404 errors to another web server
which in turn goes to another, and could end up looping indefinably.
I want the if statement to say, if REQUEST_URI *CONTAINS* adl then print
"no good" (it will change but this is testing) else continue.

Another problem I have noticed, is it changes the $ENV{REQUEST_URI} to
adl, which is not what I want, I want it to be what it says.

Sorry if this abit hard to understand, but I am confused....

Cheers,

Scott

-- 
Scott Ragen
Roadtech Systems Ltd.
Support Manager
Ph: +61 2 9807 3516 Fax: +61 2 9008 5294
www.roadtechsystems.com.au

-- 
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug

Reply via email to