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 "






<body>
The website for $host can be found by clicking <a href=\"$dest\">here</a>.
$host is registered though <a href=\"http://stonhamhosting.net/\">StonhamHosting - get web site hosting here</a>
</body>


“;

Then add this to your .htaccess in the top level directory of you web site:

RewriteEngine on
RewriteBase /
RewriteRule ^(.*)       cgi-bin/redirect.cgi

Posted in Hosting| No Comments | 

I Work With An Idiot!

Posted by Rob at February 1st, 2006

I’m soon to be starting a new website where you can have a winge and moan about the idiots that you have to work with. It will also to somewhere to tell the world how bad people are at their jobs and tell funny stories.
Keep an eye out at www.iworkwithandidiot.com

Posted in Hosting, Misc, Work| No Comments |