I would like to have an option so if the url in by database is like: file=test.pdf i redirect to another location. But's it not working...
if ($goto =~ s/^file=//i)
{
Location: /cgi-bin/redirect.cgi?$goto\n\n;
}
else
{
Location: $goto\n\n;
}
if ($goto =~ s/^file=//i)
{
Location: /cgi-bin/redirect.cgi?$goto\n\n;
}
else
{
Location: $goto\n\n;
}