Upgrade to Pro — share decks privately, control downloads, hide ads and more …

大規模ウェブサイトのURL刷新の方針と実装

9cabf952ecb2e61409693c19e01162b0?s=47 tamanobi
October 08, 2017
2.2k

 大規模ウェブサイトのURL刷新の方針と実装

PHP Conference2017で発表した内容です。

9cabf952ecb2e61409693c19e01162b0?s=128

tamanobi

October 08, 2017
Tweet

Transcript

  1. େن໛8FCαΠτͷ 63-࡮৽ͷํ਑ͱ࣮૷ 1)1$POGFSFODF

  2. ࣗݾ঺հ ‣ ࢁࡍ߁وUBNBOPCJ ‣ ೥݄ϐΫγϒגࣜձࣾʹೖࣾ ‣ QJYJWͷόοΫΤϯυΛҰ෦୲౰ ‣ ࠷ۙ͸޿ࠂ4&0ςετपΓػցֶशͳͲ

  3. ϐΫγϒͰ͸
 Ұॹʹಇ͘஥ؒΛืूதͰ͢ IUUQTXXXQJYJWDPKQ

  4. QJYJW ΠϥετίϛϡχέʔγϣϯαʔϏε

  5. QJYJWͷ঺հ ‣ ΠϥετίϛϡχέʔγϣϯαʔϏε ‣ ສ௒Ϣʔβʔ ‣ σεΫτοϓϞόΠϧͰ࠷దͳίϯςϯπΛ഑৴

  6. QJYJWͷ঺հ ϞόΠϧ൛ σεΫτοϓ൛

  7. QJYJWͷ঺հ ‣ σεΫτοϓϞόΠϧͰ࠷దͳίϯςϯπΛ഑৴ ‣ σεΫτοϓ൛XXXQJYJWOFU ‣ ϞόΠϧ൛UPVDIQJYJWOFU

  8. QJYJWͷ঺հ ‣ σεΫτοϓϞόΠϧͰ࠷దͳίϯςϯπΛ഑৴ ‣ σεΫτοϓ൛XXXQJYJWOFU ‣ ϞόΠϧ൛UPVDIQJYJWOFU υϝΠϯ໊͸ผʑ

  9. QJYJWͷ঺հ ‣ σεΫτοϓϞόΠϧͰ࠷దͳίϯςϯπΛ഑৴ ‣ σεΫτοϓ൛XXXQJYJWOFU ‣ ϞόΠϧ൛UPVDIQJYJWOFU υϝΠϯ໊͸ผʑ σεΫτοϓ൛ͷ%"6ϞόΠϧ൛ͷ%"6

  10. QJYJWͷ঺հ ‣ αʔϏεॳظ͔Β1)1Ͱॻ͔Ε͍ͯΔ ‣ ೥݄೔ʹप೥Λܴ͑ͨ ‣ ݹ͔͘Β͋Δίʔυ͸·ͩݱ໾ ‣ ϑϨʔϜϫʔΫΛ༻͍ͣɺಠࣗίʔυΛӡ༻อक

  11. ࠓ೔࿩͢͜ͱ ‣ QJYJWͷ63-࡮৽ ‣ 63-ͷઃܭ ‣ 63-࡮৽ͷ͖͔͚ͬ ‣ ࡮৽ͷաఔͰੜ·Εͨ՝୊ͱղܾ

  12. ࠓ೔࿩͢͜ͱ ‣ QJYJWͷ63-࡮৽ ‣ 63-ͷઃܭ ‣ 63-࡮৽ͷ͖͔͚ͬ ‣ ࡮৽ͷաఔͰੜ·Εͨ՝୊ͱղܾ 4&0ͷ࿩

  13. QJYJWͷ63-࡮৽

  14. QJYJWͷ63-

  15. QJYJWͷ63- NFNCFS@JMMVTUQIQ

  16. QJYJWͷ63- ‣ NFNCFS@JMMVTUQIQ NPEFNFEJVNJMMVTU@JE ‣ OPWFMTIPXQIQ JE ‣ SBOLJOHQIQ NPEFEBJMZ

    ‣ TFBSDIQIQ T@NPEFT@UBH@GVMMXPSEϐΫγϒͨΜ Πϥετ࡞඼ϖʔδ খઆ࡞඼ϖʔδ ૯߹σΠϦʔϥϯΩϯάϖʔδ λάΠϥετݕࡧϖʔδ
  17. 63-ͷ࡮৽ Ϣʔβʔ΋Ϙοτ΋ཧղ͠΍͍͢63-΁

  18. ৽63- ‣ VTFSJMMVTU ‣ OPWFMVTFSXPSL ‣ SBOLJOHBMMEBJMZ ‣ UBHϐΫγϒͨΜJMMVTU Πϥετ࡞඼ϖʔδ

    খઆ࡞඼ϖʔδ λάΠϥετݕࡧϖʔδ ૯߹σΠϦʔϥϯΩϯάϖʔδ
  19. 63-ൺֱ ‣ VTFSJMMVTU ‣ NFNCFS@JMMVTUQIQ NPEFNFEJVNJMMVTU@JE

  20. 63-ൺֱ ‣ VTFSJMMVTU ‣ NFNCFS@JMMVTUQIQ NPEFNFEJVNJMMVTU@JE γϯϓϧ͔ͭɺཧղ͠΍͘͢ઃܭͨ͠

  21. ࡞඼͸Ϣʔβʔʹ݁ͼͭ͘ ‣ VTFSJMMVTU ‣ ࡞඼͕Ϣʔβʔͷ΋ͷͩͱ༧૝Ͱ͖Δ ‣ 63-͔Β࡞඼͕Πϥετͩͱ༧૝Ͱ͖Δ Πϥετ࡞඼ϖʔδ

  22. ࡞඼͸Ϣʔβʔʹ݁ͼͭ͘ ‣ VTFSJMMVTU ‣ ࡞඼͕Ϣʔβʔͷ΋ͷͩͱ༧૝Ͱ͖Δ ‣ 63-͔Β࡞඼͕Πϥετͩͱ༧૝Ͱ͖Δ Πϥετ࡞඼ϖʔδ Ϣʔβʔϖʔδͷ
 63-͕૝૾Ͱ͖Δ

  23. ࡞඼͸Ϣʔβʔʹ݁ͼͭ͘ ‣ ҎԼ͕ಛఆͷଐੑ ྫೣࣖ ͰӾཡ਺͕ଟ͚Ε͹ ‣ VTFS"""JMMVTU99999 ‣ VTFS"""JMMVTU::::: ‣

    VTFS"""JMMVTU;;;;;
  24. ࡞඼͸Ϣʔβʔʹ݁ͼͭ͘ ‣ ҎԼ͕ಛఆͷଐੑ ྫೣࣖ ͰӾཡ਺͕ଟ͚Ε͹ ‣ VTFS"""JMMVTU99999 ‣ VTFS"""JMMVTU::::: ‣

    VTFS"""JMMVTU;;;;; VTFS"""΋ʮೣࣖʯͱ
 ؔ࿈͕ਂ͍ͱධՁ͞ΕΔͱظ଴
  25. ৽63- ࠶ܝ ‣ VTFSJMMVTU ‣ OPWFMVTFSXPSL ‣ SBOLJOHBMMEBJMZ ‣ UBHϐΫγϒͨΜJMMVTU

    Πϥετ࡞඼ϖʔδ খઆ࡞඼ϖʔδ λάΠϥετݕࡧϖʔδ ૯߹σΠϦʔϥϯΩϯάϖʔδ
  26. طଘͷߏ଄Λյ͞ͳ͍ ‣ OPWFMVTFSXPSL ‣ ੲ͔ΒOPWFM͕খઆτοϓϖʔδ ‣ Ϣʔβʔͷश׳Λյ͞ͳ͍Α͏ʹઃܭ খઆ࡞඼ϖʔδ

  27. طଘͷߏ଄Λյ͞ͳ͍ ‣ OPWFMVTFSXPSL ‣ ੲ͔ΒOPWFM͕খઆτοϓϖʔδ ‣ Ϣʔβʔͷश׳Λյ͞ͳ͍Α͏ʹઃܭ খઆ࡞඼ϖʔδ

  28. طଘͷߏ଄Λյ͞ͳ͍ ‣ OPWFMVTFSXPSL ‣ ੲ͔ΒOPWFM͕খઆτοϓϖʔδ ‣ Ϣʔβʔͷश׳Λյ͞ͳ͍Α͏ʹઃܭ খઆ࡞඼ϖʔδ ઌ಄ʹOPWFM

  29. 63-ઃܭ ‣ Ϣʔβʔʹ΋Ϙοτʹ΋ཧղ͠΍͍͢ߏ଄ ‣ طଘͷ63-ߏ଄ΛͰ͖ΔݶΓอͭ ‣ Ϣʔβʔͷश׳Λյ͞ͳ͍Α͏ʹ഑ྀ

  30. (PPHMFͷ.'*ൃද ͳͥ౿Έ੾ͬͨͷ͔ʁ

  31. IUUQTXFCNBTUFSKBHPPHMFCMPHDPNNPCJMFpSTUJOEFYJOHIUNM lকདྷతʹ(PPHMFͷΞϧΰϦζϜ͸ϞόΠϧ൛ ͷίϯςϯπΛओʹ࢖༻͢ΔΑ͏ʹͳΓ·͢ɻz

  32. .'* .PCJMF'JSTU*OEFY ‣ (PPHMFͷΞϧΰϦζϜʹϞόΠϧ൛ίϯςϯπ͕
 ओʹ࢖༻͞ΕΔΑ͏ʹͳΔ͜ͱ ‣ ϞόΠϧ൛ίϯςϯπ͕
 ϥϯΩϯάݕࡧ݁ՌͷදࣔͳͲʹ࢖ΘΕΔ

  33. ݕࡧ݁Ռ΁ͷӨڹ

  34. ݕࡧ݁Ռ΁ͷӨڹ কདྷϞόΠϧ൛ίϯςϯπ͕
 ࢖ΘΕΔ

  35. .'*ରԠ ‣ ϞόΠϧ൛ίϯςϯπͷ4&0 ‣ ධՁΛू໿͢ΔͨΊʹυϝΠϯ໊Λ౷߹ ‣ XXXQJYJWOFUͰϞόΠϧ൛ίϯςϯπΛ഑৴ ‣ ରԠ͠ͳ͍৔߹ɺݕࡧྲྀೖʹେ͖ͳӨڹ͕Ͱͦ͏

  36. QJYJWͷ4&0 ‣ ೥͔Βࠓ·Ͱ࠷దԽΛଓ͚͍ͯΔ ‣ νϡʔχϯά͸σεΫτοϓ൛͕த৺ ‣ .'*Ͱେ͖ͳӨڹΛड͚Δͱ༧૝

  37. QJYJWͷ4&0 ສ ສ

  38. υϝΠϯ໊౷߹ ‣ σεΫτοϓϞόΠϧͷυϝΠϯ໊౷߹΁ͷظ଴ ‣ γΣΞ͞Εͨͱ͖ʹ֦ࢄ͞ΕΔ63-͕෼ࢄ͠ͳ͍ ‣ ྆ํͷυϝΠϯ໊ͷධՁ͕Ұͭʹू໿͞ΕΔ
 Ϋϩʔϥʔ͕෼ࢄ͠ͳ͍

  39. .'*ͱ63-࡮৽ͷؔ܎ ‣ .'*ͱ63-࡮৽͸௚઀ؔ܎ͳ͍ ‣ .'*ͷͨΊʹϧʔλʔ͕ಋೖ͞ΕͨͷͰ
 63-࡮৽͕ݱ࣮తʹͳͬͨ ‣ 63-࡮৽ʹ͸
 ϢʔβϏϦςΟͷ޲্ͱ4&0͕ظ଴Ͱ͖Δ

  40. .'*ରԠ΁ͷোน

  41. QJYJWͷߏ੒ ‣ ϑϨʔϜϫʔΫΛ༻͍ͣɺಠࣗίʔυΛӡ༻อक ‣ XXX΍UPVDIʹϧʔλʔ͸ͳ͔ͬͨ ‣ ՝୊ϧʔλʔͷ࡞੒ ‣ υΩϡϝϯτϧʔτͷϑΝΠϧΛͦͷ··࣮ߦ ‣

    ՝୊$POUSPMMFSͷΫϥεԽͳͲ
  42. ϧʔλʔͷ࡞੒ ‣ ύτϦγΞτϥΠΛ࢖ͬͨίΞ࣮૷
 ৄࡉ1)1Ͱߴ଎ʹಈ࡞͢Δ63-ϧʔςΟϯάΛࣗ࡞ͯ͠Έͨ

  43. ϧʔλʔͷ࡞੒ ‣ ύτϦγΞτϥΠΛ࢖ͬͨίΞ࣮૷
 ৄࡉ1)1Ͱߴ଎ʹಈ࡞͢Δ63-ϧʔςΟϯάΛࣗ࡞ͯ͠Έͨ ࣮ߦ͕࣌ؒϧʔςΟϯά਺ʹ ґଘ͠ͳ͍

  44. ϧʔςΟϯά

  45. ϧʔςΟϯά

  46. ϧʔςΟϯά ༩͑ΒΕͨ63-

  47. ϧʔςΟϯά ༩͑ΒΕͨ63-

  48. ϧʔςΟϯά ༩͑ΒΕͨ63-

  49. ϧʔςΟϯά ىಈ͢Δ΂͖$POUSPMMFS ༩͑ΒΕͨ63-

  50. ϧʔςΟϯά ىಈ͢Δ΂͖$POUSPMMFS ༩͑ΒΕͨ63-

  51. ϧʔςΟϯά ىಈ͢Δ΂͖$POUSPMMFS ༩͑ΒΕͨ63-

  52. ϧʔλʔར༻ͷ՝୊

  53. ϧʔλʔར༻ͷ՝୊ ‣ ϧʔλʔΛ࢖͏ʹ͸ɺҎԼͷ໰୊͕͋ͬͨ ‣ Ϋϥε໊ͷॏෳ ‣ HMPCBMؔ਺ͷఆٛ ‣ 63-૊Έཱͯͷ໰୊

  54. $POUSPMMFSͷ໰୊ ‣ Ϋϥε໊͕ॏෳ ‣ 'PP$POUSPMMFS͕ෳ਺ ‣ ϑΝΠϧʹHMPCBMؔ਺͕ఆٛ ‣ GVODUJPOEJTQMBZ \^

  55. ϧʔςΟϯά

  56. ϧʔςΟϯά ॏෳ͢Δͱ
 ղܾͰ͖ͳ͍ʂ

  57. Ϋϥε໊͕ॏෳ ‣ ద੾ͳ໊લʹϦωʔϜ ‣ Ϋϥε໊ʹύεΛར༻ ‣ ྫTFUUJOHQIQ4FUUJOH$POUSPMMFS

  58. Ϋϥε໊͕ॏෳ ‣ ద੾ͳ໊લʹϦωʔϜ ‣ Ϋϥε໊ʹύεΛར༻ ‣ ྫTFUUJOHQIQ4FUUJOH$POUSPMMFS Ұҙʹఆ·Δ

  59. HMPCBMؔ਺ͷ੩తϝιουԽ Խ

  60. HMPCBMؔ਺ͷ੩తϝιουԽ Խ

  61. HMPCBMؔ਺ͷ੩తϝιουԽ Խ

  62. HMPCBMؔ਺ͷ੩తϝιουԽ Խ HMPCBMؔ਺͕ಉϑΝΠϧ಺Ͱఆٛ

  63. HMPCBMؔ਺Λ੩తϝιου΁ ‣ ੩తϝιουͱͯ͠ఆٛ͠ͳ͓͢
 1IQ4UPSNͳͲͷ*%&ͰࢧԉՄೳʹ͢Δ  ‣ EJTQMBZ )PHF$POUSPMMFSEJTQMBZ

  64. ࡞ۀ࣌ؒ͸ ‣ Ϋϥε໊ͷॏෳ਺ेݸ ‣ HMPCBMؔ਺ͷఆٛڧ

  65. ࡞ۀ࣌ؒ͸ ‣ Ϋϥε໊ͷॏෳ਺ेݸ ‣ HMPCBMؔ਺ͷఆٛڧ ࡞ۀݟੵ΋Γ࣌ؒ௒

  66. ࡞ۀ࣌ؒ͸ ‣ Ϋϥε໊ͷॏෳ਺ेݸ ‣ HMPCBMؔ਺ͷఆٛڧ ࡞ۀݟੵ΋Γ࣌ؒ௒ 7JNͰߴ଎ղܾ͠·ͨ͠

  67. 7JNTDSJQU ࣌ؒ௒ͷ࡞ۀΛ࣌ؒͰऴΘΒͤΔ

  68. 7JNTDSJQU ‣ 7JNͷίϚϯυΛฒ΂ͨ΋ͷ ֦ுࢠ͸WJN  ‣ WJNSD͸7JNTDSJQU ‣ WJN4pMFWJNͱ࣮ͯ͠ߦ͢Δ ‣

    WJN/V/0/&J/0/&4pMFWJN
  69. 7JNTDSJQU ‣ 7JNͷίϚϯυΛฒ΂ͨ΋ͷ ֦ுࢠ͸WJN  ‣ WJNSD͸7JNTDSJQU ‣ WJN4pMFWJNͱ࣮ͯ͠ߦ͢Δ ‣

    WJN/V/0/&J/0/&4pMFWJN ࣮ࡍ࣮ߦ͢Δͱ͖
  70. ͳͥ7JNTDSJQU ‣ 7JNͷػೳΛ࢖͑Δ ‣ ςΩετΦϒδΣΫτϚονϖΞ
 ϨδελϚΫϩΦʔτΠϯσϯτFUDʜ

  71. ͳͥ7JNTDSJQU ‣ 7JNͷػೳΛ࢖͑Δ ‣ ςΩετΦϒδΣΫτϚονϖΞ
 ϨδελϚΫϩΦʔτΠϯσϯτFUDʜ ίʔυϦϑΝΫλϦϯάͷڧྗͳ%4-

  72. Ϋϥε໊ͷϦωʔϜ

  73. Ϋϥε໊ͷϦωʔϜ

  74. Ϋϥε໊ͷϦωʔϜ Ϋϥε໊ΛZBOL

  75. Ϋϥε໊ͷϦωʔϜ Ϋϥε໊ΛZBOL

  76. Ϋϥε໊ͷϦωʔϜ Ϋϥε໊ΛZBOL Ϋϥε໊Λมߋ

  77. Ϋϥε໊ͷϦωʔϜ Ϋϥε໊ΛZBOL ࣌ؒ௒ͷ࢓ࣄ͕࣌ؒͰऴΘͬͨ Ϋϥε໊Λมߋ

  78. ϧʔλʔར༻ͷ՝୊ ‣ ϧʔλʔΛ࢖͏ʹ͸ɺҎԼͷ໰୊͕͋ͬͨ ‣ Ϋϥε໊ͷॏෳ ‣ HMPCBMؔ਺ͷఆٛ ‣ 63-૊Έཱͯͷ໰୊

  79. 63-૊Έཱͯ

  80. 63-૊Έཱͯ

  81. 63-૊Έཱͯ Ұ෦ 63-Λ૊Έཱ͍ͯͯͨ

  82. ૬ରύε

  83. ૬ରύε

  84. ૬ରύε ύεʹґଘ͍ͯͨ͠ͷͰɺ
 ૬ରύεͰࢦఆ͞Ε͍ͯΔ͜ͱ΋

  85. 63-૊Έཱͯ

  86. ‣ 63-͕มߋ͞Εͨͱ͖ɺஔ׵͸େม ‣ ΫΤϦύϥϝʔλʵͷॱং͕ؒҧ͑΍͍͢ ‣ ؔ਺ʹ63-૊ΈཱͯΛ΍ͬͯ΋Β͏ 63-૊Έཱͯ

  87. ‣ 63-͕มߋ͞Εͨͱ͖ɺஔ׵͸େม ‣ ΫΤϦύϥϝʔλʵͷॱং͕ؒҧ͑΍͍͢ ‣ ؔ਺ʹ63-૊ΈཱͯΛ΍ͬͯ΋Β͏ 63-૊Έཱͯ 4&0ʹ΋Өڹ͢Δ

  88. 63-૊Έཱͯ ‣ 63-Λߏங͢ΔSFWFSTF@SPVUFͱ͍͏ؔ਺Λఆٛ ‣ QBHF ࣝผࢠ ʹԠͯ͡63-Λߏங ‣ QBHFlJMMVTUzQBHFlNFNCFSzFUDʜ ‣

    Τεέʔϓ΋΍ͬͯ͘ΕΔ
  89. 63-૊Έཱͯ ςϯϓϨʔτ ग़ྗ͞ΕΔ)5.-

  90. 63-૊Έཱͯ ςϯϓϨʔτ ग़ྗ͞ΕΔ)5.- Τεέʔϓ΋
 ύϥϝʔλʔ΋ ͓·͔ͤ

  91. ૬ରύεͷഇࢭ ‣ $POUSPMMFS୯ҐͰ\SFWFSTF@SPVUF^΁ஔ׵ ‣ Ұ෦ɺػցతஔ׵ͰͰ͖ͳ͍෦෼͸खಈ ‣ ಈ࡞֬ೝ ‣ DVSM*-ͰεςʔλείʔυΛ֬ೝ ‣

    ໨ࢹ
  92. ϧʔλʔར༻ͷ՝୊ ‣ ϧʔλʔΛ࢖͏ʹ͸ɺҎԼͷ໰୊͕͋ͬͨ ‣ Ϋϥε໊ͷॏෳ ‣ HMPCBMؔ਺ͷఆٛ ‣ 63-૊Έཱͯͷ໰୊

  93. ·ͩ·ͩଓ͘.'*ରԠ

  94. ·ͩ·ͩଓ͘.'*ରԠ ‣ ೥݄೔ ‣ (PPHMF͸38% 3FTQPOTJWF8FC%FTJHO Λڧ͘ਪ঑ ਖ਼ࣜൃදͰ͸ͳ͍ 
 IUUQTXXXTV[VLJLFOJDIJDPNCMPHSFTQPOTJWFXFCEFTJHOJTUIFXBZUPHP

    ‣ σεΫτοϓ൛ϞόΠϧ൛ͱ΋ʹಉ͡)5.-Λ
 ഑৴ͯ͠΄͍͠Β͍͠
 ʮ38%ʹ͠ͳ͍ͱ໰୊ى͜Δ͔΋ɻ38%ͳΒ໰୊͸ͳ͍ʯ
  95. ·ͩ·ͩଓ͘.'*ରԠ ‣ υϝΠϯ໊౷߹ޙɺ6"ϕʔεͰผͷ)5.-Λ
 ഑৴͢Δ༧ఆͩͬͨ ‣ σεΫτοϓ൛ϞόΠϧ൛͸
 ผͷίʔυϕʔεͳͷͰ՝୊͸ࢁੵΈ ‣ ௕ظతͳରԠΛݕ౼த

  96. ·ͱΊ ‣ .'*ରԠΛ͖͔͚ͬʹ৽͍͠63-ઃܭ͕Ͱ͖ͨ ‣ ϢʔβʔͱϘοτ͕ཧղ͠΍͍͢ઃܭ ‣ 7JN͸ϦϑΝΫλϦϯάʹ༗༻ ‣ υϝΠϯ໊౷߹ʹ͸·ͩ՝୊͕ࢁੵΈ ‣

    38%ରԠ
  97. ϐΫγϒͰ͸
 Ұॹʹಇ͘஥ؒΛืूதͰ͢ IUUQTXXXQJYJWDPKQ