PDA

View Full Version : redirect script


Joe Blow
02-22-2005, 01:21 PM
I run a forum and am going to be changing my forum software shortly.

The main forum url is currently in the cgi-bin (*.cgi) and now I need a little script that redirects users to the new url.

I'm hoping some kind perl coder out there will help me out! :D

Thanks in advance!

Joe

requestcode
02-22-2005, 03:02 PM
You could try this:
print redirect('http://www.somesite.com/somepage.cgi');

Or you could try a javascript redirect like this:

print "Content-type: text/html\n\n";
print "<html><head><title>My Test</title></head><body>";
print '<script type="text/javascript">location.href="http://www.requestcode.com"</script>';
print "</body>";