Lifehacker.comãäŸã«ãšããšãSEOãè¿œãããããããã°ã¬ãã·ããšã³ãã³ã¹ã¡ã³ããã®ååãåŠå®ããæå 端ã®ãã¯ãããžãŒãç²ç®çã«è¿œè·¡ããããšã«ã©ã®ãããªåé¡ãçããå¯èœæ§ããããã瀺ãããŠããŸãã
å é±æææ¥ãLifehacker.comã¯JavaScriptãå£ããŠããããå©çšã§ããŸããã§ããã Lifehacker.comã¯ãä»ã®Gawkerãµã€ããšãšãã«ãã³ã³ãã³ããåºåããã®ä»äœããªã空çœã®ããŒã ããŒãžã衚瀺ããŸããã Googleã®æ€çŽ¢çµæããã¡ã€ã³ããŒãžã«ãªãã€ã¬ã¯ãããããµãããŒãžãžã®ç§»è¡ã
JavaScriptã«äŸåããURL
Gawkerã¯ã以åã®Twitterãšåæ§ã«ãããŒãžã®URLãå«ãJavaScriptã«å®å šã«äŸåããŠãµã€ããåæ§ç¯ããŸããã JavaScriptãããŒãã§ããªãã£ããããã³ã³ãã³ããäžè¶³ããURLãå£ããŠããŸãã
æ°ããããŒãžã¢ãã¬ã¹ã¯ã
http://lifehacker.com/#!5753509/hello-world-this-is-the-new-lifehacker
ïŒ
http://lifehacker.com/#!5753509/hello-world-this-is-the-new-lifehacker
/
http://lifehacker.com/#!5753509/hello-world-this-is-the-new-lifehacker
this-
http://lifehacker.com/#!5753509/hello-world-this-is-the-new-lifehacker
the-new-
http://lifehacker.com/#!5753509/hello-world-this-is-the-new-lifehacker
ããã«ãªããŸãã æææ¥ãŸã§ãã¢ãã¬ã¹ã¯åãã§ããããïŒïŒ..
ãã©ã°ã¡ã³ãID
ïŒã¯ãã¢ãã¬ã¹ã®æ¬¡ã®éšåããã®IDãŸãã¯çŸåšã®ããŒãžã®ååä»ãã¢ã³ã«ãŒãæã€HTMLèŠçŽ ãžã®ãªã³ã¯ã§ããããšããã©ãŠã¶ã«äŒããç¹å¥ãªURLæåã§ãã lifehacker.comã®å ŽåãçŸåšã®ããŒãžãã¡ã€ã³ããŒãžã§ãã
æææ¥ãŸã§ããµã€ãã¯100äžããŒãžã§æ§æãããŠããŸããããçŸåšã¯1ããŒãžã«100äžã®ãã©ã°ã¡ã³ãèå¥åããããŸãã
ãªãã§ïŒ ç¥ããŸãã Twitterã¯ãGoogleããã®ãããªãã€ãŒãã玢åŒä»ãã§ããã®ãšåããã¯ãããžãŒã«åãæ¿ãããšãã«ãã®è³ªåã«çããŸããã ããã¯ããã§ãããåãããšã以åã®æ£ããã¢ãã¬ã¹æ§é ã§ããå°ãªãã³ã¹ãã§éæã§ããŸããã
åé¡è§£æ±º
ã¢ãã¬ã¹æ§æcïŒïŒ ïŒããã·ã¥ãã³ïŒã¯ãGoogleãWebéçºè ãããããã«ããã€ã³ããã¯ã¹äœæã®ããã«ãµã€ãã«ã¢ã¯ã»ã¹ã§ããããã«ããæ¹æ³ãçºè¡šãããšãã«ãæåã«Webéçºã®åéã«å ¥ããŸããããã以åã¯ãæ£ãã決å®ã«ã€ããŠã¯ããç¥ãããŠããªãã£ããããã³ã³ãã³ããèªã¿èŸŒãããã®Ajaxã®ãããªçŸãããã¯ãããžãŒãåãããµã€ãã§ã¯ãJavaScriptåŒã³åºãã®èåŸã«é ãããã³ã³ãã³ããããããæ€åºã§ããªããããé¢é£ããŒã¯ãŒãã®äœã¬ãã«ã®ã€ã³ããã¯ã¹ä»ããŸãã¯è©äŸ¡ã芳å¯ãããŸãã
Googleã¯ãã®åé¡ã解決ããããã«å€ãã®æéãè²»ãããŸããããããã«æåãããããäžæ¹ã®ç«¯ããè¡ãããšã«ããŸãã ã ãã®æ¶ç©ºã®ã³ã³ãã³ããèŠã€ããããšãã代ããã«ããµã€ãã®ææè èªèº«ã«å ±åãããŠãã ããã ãã®ããã«ã ä»æ§ãéçºãããŸããã
Googleã¯ãéçºè ããé²æ©çãªæ¹åããåãããµã€ããäœæããã³ã³ãã³ãã®äžéšãšããŠJavaScriptã«äŸåããªããšããäºå®ã«æ³šæãéäžããŠãããšããäºå®ã«æ¬æãè¡šããªããã°ãªããŸããã
æåããå§ããå Žåã¯ãHTMLã®ã¿ã䜿çšããŠãµã€ãã®æ§é ãšããã²ãŒã·ã§ã³ãæ§ç¯ããããšããå§ãããŸãã 次ã«ããµã€ãã®ããŒãžããªã³ã¯ãããã³ã³ã³ãã³ããé©åã«é 眮ããããå€èŠ³ãšAjaxãšã®ã€ã³ã¿ãŒãã§ã€ã¹ã匷åã§ããŸãã Googlebotã¯HTMLãèŠãŠæºè¶³ããŠããŸãããææ°ã®ãã©ãŠã¶ã䜿çšããŠãããŠãŒã¶ãŒã¯AjaxããŒãã¹ã楜ããããšãã§ããŸãã
ã€ãŸã cïŒã¢ãã¬ã¹æ§æïŒ Webéçºã®åºæ¬ååã«åºã¥ããŠããã€ã¹ãé 眮ãããµã€ãåãã«ç¹å¥ã«èšèšãããŠããããã®ãããªWebãµã€ãã«åœãå¹ã蟌ã¿ãã³ã³ãã³ãããããã«ãã£ãŠæ€åºãããããã«ããŸããã
ãããŠä»ããã®ã©ã€ãã©ã€ã³ã¯FacebookãTwitterããããŠä»ãLifehacker.comã®ãšã³ãžãã¢ã«ãã£ãŠå¯äžã®çã®Webéçºãã¹ãšããŠåãå ¥ããããŠããããã§ãã
ãããURL
Googleä»æ§ã§ã¯ïŒïŒ-ã¢ãã¬ã¹ã¯ãprettyURLããšåŒã°ãããããã«ãã£ãŠããã°ããã¹ã¯ãªãã®ã«å€æãããŸããå é±ã®æ¥ææ¥ãLifehackerã®ã¢ãã¬ã¹ã¯æ¬¡ã®ããã«ãªããŸããïŒ
http://lifehacker.com/5753509/hello-world-this-is-the-new-lifehacker
:
http://lifehacker.com/5753509/hello-world-this-is-the-new-lifehacker
ããã çãäžã®7æ¡ã®ã³ãŒãã¯ç解ã§ããªãå¯äžã®ãã©ã°ã¡ã³ãã§ãããèšäºãäžæã«èå¥ããããã«CMSã§å¿ èŠã§ãã ãããã£ãŠãå®éã«ã¯ãã¯ãªãŒã³ãã¢ãã¬ã¹ã§ãã
ä»æ¥ãåãèšäºã¯
http://lifehacker.com/#!5753509/hello-world-this-is-the-new-lifehacker
å ¥æã§ããŸãããïŒïŒã®è¿œå ã«ãããã¢ãã¬ã¹ã¯ä»¥åã®ãã®ããããã¯ãªãŒã³ãã§ã¯ãªããªããŸããã äœæã®æ§é ãæ ¹æ¬çã«å€æŽããŸãã
- äœæ/ 5753509 / hello-world-this-is-the-new-lifehackerã¯ã·ã³ãã«ã«ãªããŸã/
- æ°ãããã©ã°ã¡ã³ãèå¥åãè¿œå ãããŸããïŒ5753509 / hello-world-this-is-the-new-lifehackerãã¢ãã¬ã¹ã«è¿œå ãããŸããã
Googleã®ä»æ§ã§ã¯ãã¢ãã¬ã¹ã¯ãã©ã¡ãŒã¿ãŒä»ãã®ã¢ãã¬ã¹ã«åäœæãããŸãã ã§ïŒ
http://lifehacker.com/?_escaped_fragment_=5753509/hello-world-this-is-the-new-lifehacker
:
http://lifehacker.com/?_escaped_fragment_=5753509/hello-world-this-is-the-new-lifehacker
/
http://lifehacker.com/?_escaped_fragment_=5753509/hello-world-this-is-the-new-lifehacker
ãããã£ãŠãã³ã³ãã³ããè¿ãã®ã¯ãã®ã¢ãã¬ã¹ã§ãã ãã®ã¢ãã¬ã¹ã¯æ£èŠã§ããã€ãŸãã ããããã€ã³ããã¯ã¹ãããã®ã
åæ§ïŒ
http://example.com/default.asp?page=about_us
:
http://example.com/default.asp?page=about_us
Lifehacker.comãšGawkerã¯ãåçŽãªäœæã§10幎ã®çµéšãç©ãã ã ãã§ãå žåçãªASPãµã€ãã«æ»ã£ãŠããŸããïŒFrontpageã¯ããã«å€ããç²åŸã§ããŸããïŒïŒã
åé¡ã¯äœã§ããïŒ
äž»ãªåé¡ã¯ãLifehacker.comã®ã¢ãã¬ã¹ãã³ã³ãã³ããæããŠããªãããšã§ãã åURLã¯ããŒã ããŒãžãæããŸãã 幞éã§JavaScriptã䜿ã£ãŠããŸããã£ãŠããã°ãå¿ èŠãªã³ã³ãã³ãã¯ã¡ã€ã³ããŒãžã«äŸåããŸããéåžžã®ã¢ãã¬ã¹ãããè€éã§ããšã©ãŒãçºçãããããè匱ã§ãã
ã³ã³ãã³ãã«é¢é£ä»ããããã¢ãã¬ã¹ãèŠæ±ãããšãèŠæ±ã®ã€ãã·ãšãŒã¿ãŒã¯ã³ã³ãã³ããåä¿¡ããŸããã ã€ãŸã ç Žæã¯èšèšã«ãããŸãã Lifehacker.comã¯ãããããèå³æ·±ãã³ã³ãã³ãã®ãªã³ã¯ããã©ãããšãæå³çã«çŠæ¢ããŠããŸãã ãã¡ãããGoogleãçºæããããŒããé£ã³è¶ããªããã°ã
ã§ã¯ããªããã®ããŒããå¿ èŠãªã®ã§ããããïŒ
ç®çå°ïŒïŒ
ã§ã¯ããªãïŒïŒ-ã¢ãã¬ã¹ããã³ã³ãã³ããçŽæ¥é ä¿¡ããå¥ã®ã¢ãã¬ã¹ã«åäœæããå¿ èŠãããåæã¢ãã¬ã¹ã§ããå Žåãã¢ãã¬ã¹ã䜿çšããã®ã§ããããïŒãã¹ãŠã®çç±ã®äžã§ãæã匷ãã®ã¯ããšãŠãã¯ãŒã«ã ããïŒã ç§ã¯æ匷ã§ã¯ãªãæ匷ã ãšèšã£ãã
ãšã³ãžãã¢ã¯ãAjaxã¢ããªã±ãŒã·ã§ã³ã®ç¶æ ãä¿åããããšã«ã€ããŠã€ã¶ããã§ãããã ãããŠãæ£çŽãªãšãããããã¯ãã®æ¹æ³ã§ã¢ãã¬ã¹ãå£ãã°ãããçç±ã§ãã hrefå±æ§å ã®ã¢ãã¬ã¹ã¯ãã³ã³ãã³ããžã®éåžžã®åœ¢åŒã®ãªã³ã¯ã®ãŸãŸã«ããããšãã§ããŸãã ãšã«ããJavaScriptã䜿çšããŠããã®ã§ãã¯ãªãã¯ãã³ãã©ãŒã§ãªã³ã¯ãã¯ãªãã¯ããŠãïŒïŒãé©åãªå Žæã«è¿œå ããããšã§ãåŸã§å°ç¡ãã«ããããšãã§ããŸããç¶æ ç¶æããããããããäžè¬çã«éJavaScriptãããµã€ããäžå¿ èŠã«éããããšãªãã ovã
ãã¹ãŠã®ããããæåŠããïŒGooglebotãé€ãïŒ
ãã¡ãããHTTP / 1.1ãšURLä»æ§ïŒRFC-2396ãªã©ïŒã®äž¡æ¹ãå®å šã«ãµããŒããããã¹ãŠã®éãã©ãŠã¶ãšãŒãžã§ã³ãïŒã¹ãã€ããŒãã¢ã°ãªã²ãŒã¿ãŒãã€ã³ããã¯ã¹ã¹ãã£ããŒïŒã¯ãGooglebotãé€ããLifehacker.comãçµç±ã§ããŸããããããã£ãŠã次ã®çµæãèæ ®ããå¿ èŠããããŸãã
- äžéãµãŒããŒã«ã¯ã³ã³ãã³ãã®æ£èŠè¡šçŸããªãããããã£ãã·ã¥ã¯æ©èœããªãããããã£ãã·ã¥ã¯æ©èœããŸããã ããã«ãããLifehackerãããé·ãéãããšã«ãªããGawkerã¯ãã©ãã£ãã¯ã®å¢å ã«ãã倧ããªæ倱ã被ããŸãã
- HTTP / 1.1ããã³RFC-2396äºæã®ã¯ããŒã©ãŒã«ã¯ã空ã®ããŒã ããŒãžä»¥å€ã¯è¡šç€ºãããŸããã ã€ãŸã ãã®ãããªã¯ããŒã©ãŒäžã«æ§ç¯ãããã¢ããªã±ãŒã·ã§ã³ãšãµãŒãã¹ã¯ã察å¿ããå¹æããããããŸãã
- microformatsã®æœåšçãªäœ¿çšã¯å€§å¹ ã«åæžãããŸãã ãã©ãŠã¶ãšGoogleã¢ã°ãªã²ãŒã¿ãŒã®ã¿ããã€ã¯ããã©ãŒãããããŒã¿ã衚瀺ã§ããŸãã
- ããŒãžIDã䜿çšããFacebook LikeãŠã£ãžã§ããã¯ãããŒãžãLike'nã«ãªãããã®è¿œå ã®ã¢ã¯ã·ã§ã³ãå¿ èŠãšããŸãïŒããã©ã«ãã§ã¯ãã¡ã€ã³ããŒãžã¯çŽæ¥URLã§æã瀺ãããŠããå¯äžã®ãã®ã§ãããïŒã®ãããã¹ãŠã®ãæ²ç·ãã¯åã³ã¡ã€ã³ããŒãžãžã®ãªã³ã¯ãšããŠç解ãããŸãïŒ
JavaScriptã®å®å šãªäŸåé¢ä¿
URLã§ã³ã³ãã³ããååŸã§ããªãå Žåããµã€ãã¯å£ããŠããŸãã ãŽãŒã«ãŒã¯ãªã³ã¯ãå£ãããšã§æèçã«ãã®ã¹ããããèžãã ã 圌ãã¯ãããããçš®é¡ã®JavaScriptãšã©ãŒã®ããã§ããµã€ãã®å¯çšæ§ãæ®ããŸããã- JSã®ããŠã³ããŒãã«å€±æãããšãå é±ã®æææ¥ïŒ2011幎2æ7æ¥ïŒã«ãã¹ãŠã®GawkerãµãŒãã¹ã5æéå©çšã§ããªããªããŸããã
- ãªãã©ã«ãšããŠå®£èšããããªããžã§ã¯ããŸãã¯é åã®æåŸã«ã»ãã³ãã³ïŒ;ïŒããªããšãInternet Explorerã§ãšã©ãŒãçºçããŸãã
- ã©ã³ãã ã«æ®ãããconsole.logïŒïŒã«ããããŠãŒã¶ãŒã¯éçºè ããŒã«ã䜿çšããã«ã¯ã©ãã·ã¥ããŸãã
- åºåæ¿å ¥ã¯åžžã«ééã£ãŠããããšãå€æããŸããã åºåãŠãããã®ãšã©ãŒ-ãµã€ãããããŸããã ãããŠãçµéšè±å¯ãªWebéçºè ã¯ãæãéå±ãªã³ãŒãããããŒåºåã«ããããšãç¥ã£ãŠããŸãã
建ç¯ã®æªå€¢
Gawker / Lifehackerã¯ã挞é²çãªæ¹åãã®ååã«éåããçºå£²æ¥ã«ã¹ã¿ã€ããèœãšããŠããã«æ¯æããããŸããã JavaScriptã®ãã¹ã¯ãã¹ãŠå€±æã«ã€ãªãããGawkerã®åå ¥ãšèŠèŽè ã®ä¿¡é Œã«çŽæ¥åœ±é¿ããŸããããã«èªã
- http://www.tbray.org/ongoing/When/201x/2011/02/09/Hash-Blecch
- http://blog.benward.me/post/323ââ1388630