New domain: kaisersblog.com
February 11, 2009 – 01:01Pfeew after using up a lot of my blood, sweat and tears my blog is finally transefered succesfully to its new domain, www.kaisersblog.com. I apologise for the weird stuff you may have seen the last two days. As of now everything is fully operational again and visitors are automatically redirected when trying to visit any old url’s. If you’re still encountering any kind of problem or something is missing, please let me know.
For those of you looking for a javascript redirect script, here it is:
<script type="text/javascript">
<!--
function visitorwarp()
{
var location = '<!--#echo var="REQUEST_URI" -->';
var newlocation = location.replace("/blog", "http://www.kaisersblog.com");
document.write ('<META name="robots" content="NOINDEX, FOLLOW">');
window.location = ""+newlocation;
}
function waitingroom()
{setTimeout("visitorwarp()", 5000);}
//-->
</script>
Don’t forget to call the waitingroom function in you body tag:
<body onLoad="waitingroom()">
You also might want to change a few things as this script recplaces “/blog” to “http://www.kaisersblog.com” from the location variable. The location variable is the apache SSI “REQUEST_URI” variable.
Change waiting time in waitingroom function, current is 5000 (5 secs.)
I don’t really know if google bots will like this script. For me it’s only temporary untill search engines and visitors know my new domain.




(+2 kudos, 2 votes)


