<script>
function decode(){
var target = window.location.search;
switch(target) {
case "http://www.meine-domain1.de":
document.location.href="http://www.externe-domain1.de";
break;
case "http://www.meine-domain2.de":
document.location.href="http://www.externe-domain2.de";
break;
default:
document.location.href="http://www.meine-hauptdomäne.de/default.htm";
break;
}
}
</script>
und in den BODY-Tag
onload="decode()"