Page is a not externally linkable
- Hardware and OS Related Technologies
-- Website Technology Issues
---- Redirects For Fun And Profit - Part 1


bakedjake - 7:43 pm on Jun 16, 2004 (gmt 0)


This Perl code should handle any parameters:

print "Status: 301 Moved Permanently\r\n" .
"Location: http://www.example-new.com" .
"$ENV{'SCRIPT_NAME'}?$ENV{'QUERY_STRING'}\r\n" .
"\r\n";

[edited by: oilman at 8:23 pm (utc) on June 16, 2004]


Thread source:: http://www.webmasterworld.com/website_technology/3432.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com