cjohnson419 has asked for the wisdom of the Perl Monks concerning the following question:
Hi I'm not a Perl expert, and need some help please. I am currently using a script that redirects using a query after the url. (using question mark).
I want all present links to it to default to url I specify, not the query url. for example, this is how the links look:
http://www.thewebsite.com/cgi-gin/myscript.pl?http://www.redirectedurl.comI want all of the traffic to that page to go to a default url. It shouldnt be that difficult, right? Here is the present script:
####### Redirection URL $ToUrl = $ENV{'QUERY_STRING'}; &Redirect; ####### Send to url pointed at by the hyperlink sub Redirect { print "Location: $ToUrl\n\n\n"; } ###########
Again, I do NOT want the query to be used. I tried just inserting a url after $ToUrl = but that did not work. Any help greatly appreciated.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Redirect Eliminate
by moritz (Cardinal) on Jan 26, 2011 at 10:03 UTC | |
|
Re: Redirect Eliminate
by Corion (Patriarch) on Jan 26, 2011 at 08:04 UTC | |
by cjohnson419 (Initiate) on Jan 26, 2011 at 08:11 UTC | |
by Corion (Patriarch) on Jan 26, 2011 at 08:31 UTC | |
by cjohnson419 (Initiate) on Jan 26, 2011 at 09:02 UTC | |
by Corion (Patriarch) on Jan 26, 2011 at 09:06 UTC | |
| |
|
Re: Redirect Eliminate
by cjohnson419 (Initiate) on Jan 26, 2011 at 08:24 UTC |