Need a simple perl help. We have one 3rd party script on our site that needs to be updated with a 301 redirect. Similar to this thread:
[webmasterworld.com...]
For instance, when I request somesite.com/page1.cgi , I want script to redirect to someothersite.com/page1.cgi.
But since I am on win2003 and IIS, none of the simple solutions provided on the net work. I've tried all possible combinations of these:
print "Status: 301 Moved permanently\nLocation: [someothersite.com...]
print "Content-type: text/html; charset=utf-8\n\n";
print "Location: [someothersite.com...]
Only last line of code seems to do redirect at all, any others, and I will get a text printed in the browser. That last line does a 302 redirect.
I am stumped. Any ideas?
Status: 301
Location: http :// someothersite.com / page1.cgi
?
Where the page at: [somesite.com...]
contains:
<meta http-equiv="refresh" content="0;url=http://www.someothersite.com/page1.htm/">