幸运赛车官网

幸运赛车官网 » 解决方案 » 客户服务
客户服务 Services

为什么很多网站域名去“www”访问

时间:2012-12-30 15:33:35 点击:3100次

YUELAIYUEDUODEWANGZHANYUMINGBUJIAwwwLE,RUtwitter、WEIBODENGDENG(BAOKUOYIXIEFEISHEJIAOWANGLUO)。ZHEIGEWENTIWOZHUOMOGUOHENJIU,CONGSANGEFANGMIANFENXIANGYIXIAWODEXINDE。

  1、不加 www 的裸域名好处主要是域名更加简短、容易记忆。
 
  裸域名只能绑定 DNS 的 A 记录,不能绑定 CNAME 记录。也就是说你不能把裸域设定为另外域名的别名。很多时候这对管理不是很方便,特别是使用第三方托管服务的时候。如果第三方迁移服务器导致 IP 地址变更,你必须自己去更改 DNS 的 A 记录。

  BIRUNIDEGERENBOKECAIYONG Tumblr DEFUWU,RUGUOSHIYONGLUOYU,NIXUYAOSHOUDONGJIANGNIYUMINGDE A DIZHIZHIXIANG Tumblr ZHIDINGDE IP DIZHI。Tumblr RUGUOQIANYILEJIFANG,SUOYOUTONGGUOZHEIZHONGFANGSHISHEDINGGERENYUMINGDEYONGHUDOUBIXUGENGGAIZIJIDE DNS CAINENGJIXUSHIYONG,FOUZEFUWUJIUHUIZHONGDUAN。SHIYONGZIYUMINGDE CNAME JILUJIUXIANGDUIJIANDANHENDUO,ZHIXUYAOJIANG www ZIYUMINGDE CNAME ZIDUANZHIXIANG domains.tumblr.com ZHEIGEYUMING,ZHIHOURUGUO Tumblr GENGGAI IP DIZHI,TAMENZHIXUYAOZHONGXINSHEZHI domains.tumblr.com ZHEIGEYUMINGDE A JILU,ERWUXUYAOQIUMEIGEYONGHUQUGENGGAI DNS JILU。

  ZHEIGEJISHUSHANGDEXIANZHIDAOZHIXUDUODAXINGDEDISANFANGFUWUSHANGBUZHICHISHIYONGLUOYU。DIANXINGDERU Google DEFUWU,XIANZAIDOUBUNENGSHIYONGLUOYU。Google DEFUWUYONGHUJISHUDA,BUDEBUCAIYONG DNS JIBIEDEFENBUSHI,SHIYONGDAODE IP DIZHITAIDUO,ERQIEBIANDONGDA。RANGYONGHUBANGDING A JILUDEHUABULIYUFUZAIJUNHENG,WEIHUQILAIYESHIJIHUBUKENENGWANCHENGDERENWU。TONGLI,DABUFEN CDN YEBUZHICHILUOYU。

幸运赛车官网   LUOYUDE cookie DEZUOYONGFANWEITAIDA。JIARUZHIHUYECAIYONGLUOYU,NEIMEZHIHUSUOYOU cookie DEZUOYONGFANWEIJIUBAOKUOzhihu.com XIADESUOYOUZIYUMING。YEJIUSHISHUOFANGWEN foo.zhihu.com HE bar.zhihu.com DESHIHOUDOUHUIDAISHANGzhihu.com LUOYUYEMIANSHEZHIDE cookie。CONGANQUAN、YINSI、KEKUOZHANXING、YIJIGUANLIDEJIAODUERYAN,ZHEIDUIHENDUODAXINGWANGZHANLAISHUOSHIBUKEJIESHOUDE。

幸运赛车官网   URL DEZHENGZEPIPEI,RUGUODAI www QIANZHUIDEBINGQIEYI .com/.net/.org JIEWEIDE,TONGCHANGCHENGGONGDEJIHUIYAODAHENDUO。ZHEIGENIHUIZAIXUDUOWENBENBIANJIQILIMIANYUDAO。RUGUO URL BUSHI www KAITOU,BINGQIEYEBUSHISANDADINGJIYUMINGJIEWEIDE,PIPEICHENGGONGDEGAILVJIUYAOXIAOHENDUO。ZHEISHISHIYONGGUOCHENGZHONGYOUSHIHOUHUIRANGRENHENZHUAKUANGDEDIAN,ZHONGBUZHONGYAOQUANKANNIDEYONGTUHECHANGHELE。

幸运赛车官网   LINGWAIYIDIANFEIJISHUSHANGDEKAOLIANG:YONG www ZIYUMINGDEHAOCHUTIXIANZAIXIANXIADEHUANJING,BIRUHUWAIGUANGGAO、BAOZHIZAZHI、YUYINGUANGBO、YUYINDIANHUADENGSHIYONGCHANGHE,www ZHEIGEQIANZHUI(BUGUANSHISHIJUEDEHAISHITINGJUEDE)NENGGOUHENMINGQUEDETIXINGSHOUZHONG,ZHEIGEXINXIPIANDUANSHIYIGEWANGZHAN。YOURENHUISHUOJIASHANG http:// QIANZHUIYENENGJIEJUEZHEIGEWENTI,DANXIANZAISUIZHEYI Chrome/Safari WEISHOUDELIULANQIDOUKAISHIZAIDIZHILANLIYINZANG http:// XIEYIQIANZHUILE,PUTONGYONGHUDUIYU http:// ZHEIJIGEZIFUDELIJIEHUIYUELAIYUEMOHU,SUOYIRUGUOSHIXIANXIADEHUA,BAOLIU www ZHEIGE visual/vocal cue HAISHIYOUYIDINGYIYIDE。

  ZONGDELAISHUODUIYUDAFANGWENLIANGHUODUOZIYUMINGDEWANGZHANLAISHUO,BUJIANYISHIYONGLUOYU。XIAOLIULIANGHUOZIYUMINGSHAODEWANGZHANDEHUAJIUKANGERENAIHAOLE。WOTINGXIHUANLUOYUDE。ZUIJINJINIANLIUXINGQILAIDE「DANYEWANGYEYINGYONG」(Single Page Web App) YESHIYICAIYONGLUOYUDEJUDUO,Twitter SUANSHIYILI。

幸运赛车官网   2、QUDIAOwwwSHIFOUHUIYINGXIANGWANGZHANDESEO(ZHUYAOSHIPAIMINGHESHOULU)?(QIANTISHIGUOQUYOUJIAwww)

  ZAOXIANLUOYUGANGKAISHILIUXINGDESHIHOUQUESHIYOUCHUANWENSHUOBULIYU SEO,DANXIANZAIKANLAISIHUBINGWURENHEWENTI。RUGUOYOUDEHUAYESHISOUSUOYINQINGDE bug,JITAMENTIYIXIATAMENYINGGAIHUIHENLEYIQUGAI。Google DEZHANZHANGGONGJULIMIANYOUGONGJUKEYIBANGZHUNIZUO URL QIANYIDE,KEYIYOUXIAODEJIEJUEZHEIGEWENTI,ZAIPEIHEXIAYIBUFENDETIAOZHUAN,BUYONGDANXINDUI SEO YOURENHEFUMIANYINGXIANG。

  3、YONGSHENMEFANGSHIQUTIAOZHUANZUIHAO?(RU301)

  BUGUANNIJUEDINGSHIYONGHAISHIBUSHIYONGLUOYU,ZUIHAOBUYAOZAITONGSHIBAOLIU www HEFEI www QIANZHUIDE URL,ZHEIYANGJIBUFANGBIANYONGHUDELIULANQIQUFENFANGWENLISHI,YEHUIDUINIZUOFANGWENTONGJIDAILAIBUSHAOMAFAN。ZUIJIADEFANGSHISHICAIYONG 301 TIAOZHUAN,BINGQIETIAOZHUANDESHIHOUBAOLIU URL LIYUMINGHOUDEQUANBUNEIRONG。BIRU,RUGUONIJUEDINGSHIYONGLUOYU http://example.com,NEIMEQINGWUBIJIANG

幸运赛车官网   http://www.example.com/foo/bar?spam=egg

幸运赛车官网   301 TIAOZHUANDAO

  http://example.com/foo/bar?spam=egg 

  QU。HUOZHEFANGUOLAI,RUGUONIJUEDINGBUSHIYONGLUOYU,NEIMEQINGWUBIJIANG

  http://example.com/foo/bar?spam=egg
 
 301 跳转到
 
 http://www.example.com/foo/bar?spam=egg
 
 这样的跳转需在 web 服务器里单独配置,很多 DNS 管理界面提供的简单的跳转到新域名的根目录无法实现这样的功能(仅仅跳到 http://example.com/ ),对用户体验和搜索引擎 SEO 而言都是非常糟糕的。

  下面给出如何在 nginx 里面实现上述的跳转:
 

  # redirect http://www.example.com to http://example.com

  server {

  server_name www.example.com;

幸运赛车官网   rewrite ^/(.*) http://example.com/$1 permanent;

  }

幸运赛车官网   # redirect http://example.com to http://www.example.com

幸运赛车官网   server {

  server_name example.com;

  rewrite ^/(.*) http://www.example.com/$1 permanent;

  }

关闭地图

Back to Top