URL Redirect
Posted by Rob at February 26th, 2006
How to do URL redirect in frames with path forwarding.
Get this CGI script and save it in your cgi-bin directory
#!/usr/bin/perl
##
## redirect.cgi -- Program to frame redirect to another server
##
print "Content-type: text/html\n\n";
$uri = $ENV{'REQUEST_URI'};
$host = $ENV{'HTTP_HOST'};
$destbase = "http://www.stonhamhosting.net";
$dest = $destbase.$uri;
print "
The website for $host can be found by clicking here.
$host is registered though StonhamHosting - get web site hosting here
“;
Then add this to your .htaccess in the top level directory of you web site:
RewriteEngine on
RewriteBase /
RewriteRule ^(.*) cgi-bin/redirect.cgi










