switch(location.host){ 

case 'xp168.org': 

location.href="http://xp168.org/xp/" 

break; 

case 'www.xp168.org': 

location.href="http://www.xp168.org/xp/" 

break;


} 