console.log(req.headers.host,req.url);
if(req.headers.host.substr(0,4)=='www.'){
res.writeHead(302, {
'Location': req.headers.host.substr(4)
});
res.end();
//res.redirect(req.headers.host.substr(4));//+req.url
console.log('redirect');
}else next();