æ€çŽ¢ãšã³ãžã³æé©åïŒSEOïŒã¯ããµã€ãã«ãšã£ãŠéåžžã«éèŠã§ãã ãµã€ããžã®ã»ãšãã©ã®ãã©ãã£ãã¯ã¯æ€çŽ¢ãšã³ãžã³ããçŽæ¥éãããŸãããµã€ãã®æ€çŽ¢é¢é£æ§ãæ¹åãããšããµã€ããžã®ãŠãŒã¶ãŒã³ã³ããŒãžã§ã³ãå¢å ããŸãã ããã«ããããµã€ãã®åçãæ瀺çãŸãã¯æé»çã«å¢ããããšãã§ããŸãã
ãã®èšäºã§ã¯ã
URL Rewrite Extensionã䜿çšããŠããµã€ãã§çºçããå¯èœæ§ã®ããäžè¬çãªSEOã®åé¡ãä¿®æ£ããæ¹æ³ã説æããŸãã 15åããããããããŠã§ããµã€ãã«4ã€ã®ã·ã³ãã«ãª
URLæžãæãã«ãŒã«ãé©çšããæ€çŽ¢ãšã³ãžã³ããã®èšªåè
ãšãã©ãã£ãã¯ãå¢ããããã«ãã³ãŒããå€æŽããå¿
èŠã¯ãããŸããã 以äžã«ãªã¹ãããææ³ã¯ãASP.NET Webãã©ãŒã ãšASP.NET MVCãµã€ãã®äž¡æ¹ã§ïŒASP.NETãµã€ãã§ãããïŒåãããã«æ©èœããŸã
Microsoft SEO Toolkitã䜿çšããŠããµã€ãã®SEOã¬ãã«ã枬å®ããŸã
æ°ã¶æåãç§ã¯ç¡æã®SEOããŒã«ãããã«ã€ããŠ
話ããŸããã ãã®äŸ¿å©ãªããŒã«ã䜿çšãããšãSEOã«ãŒã«ã«æºæ ããŠãããã©ãããµã€ããèªåçã«ã¹ãã£ã³ããåé¡ãèŠã€ãã£ãå Žåã«éç¥ã§ããŸãã 䜿çšãããµã€ãã«ãã®ããŒã«ãããŠã³ããŒãããŠäœ¿çšããããšã
匷ããå§ãããŸãã
以äžã¯ãURLã®æžãæãã«ãŒã«ãé©çšããåã«èªåã®ãµã€ãïŒ
www.scottgu.com ïŒã§å®è¡ããã¬ããŒãã®ç°¡åãªäŸã§ããããã«ã€ããŠã¯åŸã§èª¬æããŸãã
æ€çŽ¢ã®é¢é£æ§ãšURLã®åé¢
æ€çŽ¢ãšã³ãžã³ãæ€çŽ¢é¢é£æ§ã®ããã«ãµã€ãã§ã©ã³ã¯ä»ããã2ã€ã®éèŠãªããšïŒ
- ã³ã³ãã³ãã«ãªã³ã¯ããŠããä»ã®ãµã€ãã®æ°ã æ€çŽ¢ãšã³ãžã³ã¯ãã€ã³ã¿ãŒãããäžã®å€ãã®äººã
ãããªãã®ãµã€ãã«ãªã³ã¯ããŠããå Žåãããã¯æåããŠãããšã¿ãªããããããã£ãŠãããé«ãé¢é£æ§ãæã€ã¹ãã§ãã
- ãµã€ãäžã®ã³ã³ãã³ãã®äžææ§ã æ€çŽ¢ãšã³ãžã³ããã³ã³ãã³ããç°ãªããµã€ããŸãã¯ãµã€ãã®ç°ãªãå Žæã§è€è£œãããŠããããšã確èªããå Žåãé¢é£æ§ãæžããå¿
èŠããããŸãã
ãµã€ãã®æ§ç¯äžã«ã¯ã1ã€ã®éèŠãªããšã«éåžžã«æ³šæããå¿
èŠããããŸãããµã€ãã®
åãã³ã³ãã³ãã«
ç°ãªãURLã䜿çšããããšã¯
çŠæ¢ãããŠããŸãã
ç¹ã«ãå€éšãµã€ããç°ãªããªã³ã¯ã䜿çšããŠåãã³ã³ãã³ãã«ãªã³ã¯ã§ããããã«ããããšã§ããªã³ã¯æ°ãšããŒãžè©äŸ¡ãåé¢ãããURLã1ã€ãããªãå Žåã¯ããŒãžè©äŸ¡ãäœããªããŸããæ¬ åžããŸãã çè«çã«ã¯å€éšãµã€ããããŸããŸãªæ¹æ³ã§ããªãã«ãªã³ã¯ããããšãçŠæ¢ããã®ã¯è¯ãããšã§ãããå®éã«ã¯ã©ãããæå³ã§ããïŒ
ãµã€ãã§çºçããå¯èœæ§ã®ãã4ã€ã®æ¬åœã®äžè¬çãªSEOåé¡
以äžã«ãäžæ³šæã§çºçããåãã³ã³ãã³ããžã®ç°ãªããªã³ã¯ã«ã€ãªããå¯èœæ§ã®ããæãäžè¬çãªåé¡ã®4ã€ã®äŸã瀺ããŸãã
åé¡ïŒ1ïŒããã©ã«ãã®ããã¥ã¡ã³ã
IISïŒããã³ä»ã®WebãµãŒããŒïŒã¯ããæ¢å®ã®ããã¥ã¡ã³ããã®æŠå¿µããµããŒãããŠããŸãã ããã«ãããWebãµã€ãã®ã«ãŒããŸãã¯ãã®ãµããã£ã¬ã¯ããªã«è¡šç€ºããããŒãžãæ瀺çã«æå®ããå¿
èŠããªããªããŸãã åæããŸã-䟿å©ã§ãããããã¯ããã©ã«ãã§ã³ã³ãã³ãã2ã€ã®ç°ãªããããªãã¯ã¢ãã¬ã¹ã§å©çšã§ããããšãæå³ããŸãããããã¯ãã§ã«æªãããšã§ãã äŸïŒ
http://scottgu.com/
http://scottgu.com/default.aspx
åé¡ïŒ2ïŒURLã®æåã±ãŒã¹
Webéçºè
ã¯ãæ€çŽ¢ãšã³ãžã³ã®URLã§å€§æåãšå°æåãåºå¥ããããšã¯æããªãããšããããããŸãã ããã¯ã2ã€ã®å®å
šã«ç°ãªãURLãšåæ§ã«ãæå®ããããªã³ã¯ã§æ€çŽ¢ãšã³ãžã³ãæ©èœããããšãæå³ããŸãã
http://scottgu.com/Albums.aspx
http://scottgu.com/albums.aspx
åé¡çªå·3ïŒããã«ã¹ã©ãã·ã¥ãããã«ã¹ã©ãã·ã¥
以äžã®ãªã³ã¯ãèŠããšããããã¯åãããã«èŠããŸãããããã«ã¯ãããŸããã§ãã-ãããã¯å®å
šã«ç°ãªã£ãŠããŸãã æåŸã®ã¹ã©ãã·ã¥ã¯ãæ€çŽ¢ãšã³ãžã³ããããã®ãªã³ã¯ãç°ãªããã®ãšèŠãªãå¥ã®ç¶æ³ãäœæããŸãã
http://scottgu.com
http://scottgu.com/
åé¡4ïŒããŒã¹ã¢ãã¬ã¹
ãµã€ãã§ã¯ãæ¥é èŸãwwwãã®æç¡ã«ãããããã2ã€ã®ãªãã·ã§ã³ããµããŒããããå ŽåããããŸãã ãã®å ŽåãURLã¯å®å
šã«ç°ãªããšèŠãªãããŸãã
http://scottgu.com/albums.aspx/
http://www.scottgu.com/albums.aspx/
IIS Rewriteã䜿çšããŠãããã®åé¡ã10åã§ç°¡åã«ä¿®æ£ããæ¹æ³
ãµã€ãã®äœæäžã«äžæ³šæã ã£ãå Žåããªã¹ãããããšã©ãŒã®ãããããè¡ãããšãä¿èšŒãããŸãã ãããã®åé¡ã解決ãããšãæ€çŽ¢ãšã³ãžã³ã®ã©ã³ãã³ã°ãåäžãããµã€ããžã®ãã©ãã£ãã¯ãå¢å ããŸãã
幞ããªããšã«ãããã4ã€ã®åé¡ã¯
URL Rewrite Extensionã䜿çšããŠä¿®æ£ãã
ãŸã ã ããã¯ãIIS 7.xçšã®Microsoftã®
å®å
šç¡æã®æ¡åŒµæ©èœã§ãïŒWindows Server 2008 / R2ãWindows Vista / 7ïŒã ãããŠä»ããã¥ãŒã¹ã¯ããã«è¯ããªã£ãŠããŸã-ã¢ããªã±ãŒã·ã§ã³ã®ã³ãŒããå€æŽããå¿
èŠã¯ãããŸããã
Microsoft Web Platform Installer ïŒWebãµãŒããŒãšéçºãã·ã³ãèªåçã«æ§æããç¡æã®ããŒã«ïŒã䜿çšããŠã3åã§
URL Rewrite Extensionãç°¡åã«èšå®ã§ã
ãŸã ã
URL Rewrite SpotlightããŒãžã®ç·è²ã®[ä»ããã€ã³ã¹ããŒã«]ãã¿ã³ãã¯ãªãã¯ããŠããã·ã³ã«ã€ã³ã¹ããŒã«ããŸãã
ã¢ããªã³ãã€ã³ã¹ããŒã«ãããšããã®ã¢ã€ã³ã³ãIIS 7管çããŒã«ã«ããã«è¡šç€ºãããŸãã
ã¢ã€ã³ã³ãããã«ã¯ãªãã¯ãããšãURL Rewrite管çããã«ãéããã¢ããªã±ãŒã·ã§ã³ãšãµã€ãã«å®çŸ©ãããŠããURL Rewriteã«ãŒã«ã®ãªã¹ãã衚瀺ãããŸãã
ãªã¹ãã«ã¯ããã«ã«ãŒã«ãå«ãŸããªãããšã«æ³šæããŠãã ããã ããã«ã®å³äžé
ã«ãããã«ãŒã«ã®è¿œå ããã¯ãªãã¯ããŠããµã€ãã®æ°ããæžãæãURLããžãã¯ãè¿œå ã§ããŸãã
äŸ1ïŒããã©ã«ãã®ããã¥ã¡ã³ãããªã¢ã³ãã®åŠç
ãã®èšäºã®ååã§èª¬æããSEOã®åé¡ã®1ã€ã¯ããããã©ã«ãããã¥ã¡ã³ããã§ãã
scottgu.com
http://scottgu.com/default.aspx
2çªç®ã®ã¢ãã¬ã¹ã«é£çµ¡ãã人ãæåã®ã¢ãã¬ã¹ã«èªåçã«
ãªãã€ã¬ã¯ãããæ°ããIIS Rewriteã«ãŒã«ãè¿œå ããããšã§ä¿®æ£ã§ããŸãã HTTPãªãã€ã¬ã¯ããæ°žç¶çã«èšå®ããŸããããã«ãããæ€çŽ¢ãšã³ãžã³ã¯æ°ããã¢ãã¬ã¹ã远跡ããåä¿¡ããã³ã³ãã³ãã®èå¥åãšããŠãã®ã¢ãã¬ã¹ã䜿çšããå¿
èŠããããŸãã
ãã®ã«ãŒã«ãäœæããæ¹æ³ãèŠãŠã¿ãŸãããã 以äžã«ç€ºãããã«ããã«ãŒã«ã®è¿œå ããã¯ãªãã¯ããŠå§ããŸãããã
ãInbound rulesãã°ã«ãŒãã®ãBlank Ruleããã³ãã¬ãŒããéžæããŠãæ°ããã«ã¹ã¿ã URLæžãæãã«ãŒã«ãäœæããŸãã ãããŠã空ã®ããã«ã衚瀺ãããŸãã
å¿é
ããªãã§ãã«ãŒã«ã®èšå®ã¯ãšãŠãç°¡åã§ãã 次ã®4ã€ã®ã¹ãããã§ãããè¡ãæ¹æ³ã説æããŸãã
ã¹ãããïŒ1ïŒã«ãŒã«ã®åå
æåã®ã¹ãããã¯ãã«ãŒã«ã«ååãä»ããããšã§ãã å°æ¥çã«ãªã¹ããç°¡åã«ããã²ãŒãã§ããããã«ãé©åãªååãèšå®ããå¿
èŠããããŸãã ãã®ã«ãŒã«ããããã©ã«ãã®ããã¥ã¡ã³ãURLæžãæãããšåŒã³ãŸãããã
ã¹ãããïŒ2ïŒãã®ã«ãŒã«ã«äžèŽããæ£èŠè¡šçŸãèšå®ãã
2çªç®ã®ã¹ãããã¯ãçä¿¡URLããã¿ãŒã³ã«äžèŽãããšãã«å®è¡ãããæ£èŠè¡šçŸã䜿çšããŠãã£ã«ã¿ãŒãã»ããã¢ããããããšã§ãã ããªããæ£èŠè¡šçŸã«åŒ·ããªããŠãå¿é
ããªãã§ãã ãã-ç§ãããããšåéã§ã¯ãããŸããã ããªãã¯åœŒããšåéã§ãã人ãèŠã€ããããä»ã®ãµã€ãããã³ããŒããå¿
èŠããããŸãã
以äžã«ãç®çã®æ£èŠè¡šçŸãèšå®ããŸãã
ïŒã*ïŒïŒ/ïŒããã©ã«ã\ .aspx $
ãã®ãã¿ãŒã³ã¯ãDefault.aspxã§çµããURLã§æ©èœããŸãã ãïŒã*ïŒïŒãã¯ãçŽåã®æåãš0å以äžäžèŽããŸãã ã/ïŒãã¯ãã¹ã©ãã·ã¥ãååšããå¯èœæ§ãããããŸãã¯ãã®éã§ãããšèšããŸãã æ«å°Ÿã®ã$ãæåã䜿çšãããšãDefault.aspxã§çµããå¿
èŠãããè¡ã«ã«ãŒã«ãé©çšãããããšã確èªã§ããŸãã
æ£èŠè¡šçŸã®ãã¹ãŠã®èŠçŽ ãçµã¿åãããããšã«ãããWebãµã€ãã®ã«ãŒãïŒ
http://scottgu.com/default.aspx ïŒã ãã§ãªãããµã€ãã®ä»ã®ãµããã£ã¬ã¯ããªïŒ
http://scottgu.com/photos/default.aspx ïŒã®äœæ¥ã«ãŒã«ãååŸããŸãïŒ ã倧æåãšå°æåãåºå¥ããªãããã§ãã¯ããã¯ã¹ããªã³ã«ãªã£ãŠãããããã¢ãã¬ã¹ãªãã·ã§ã³ãDefault.aspxããšãdefault.aspxãã®äž¡æ¹ãæ©èœããŸãã
çŽ æŽãããçµã¿èŸŒã¿é¢æ°ã®1ã€ã¯ããã¿ãŒã³ããã¹ãããæ©èœã§ã-ããã¹ããã¿ãŒã³ãïŒ
äžèšã§ãã¢ãã¬ã¹ãproducts / default.aspxããè¿œå ããããã¹ãããã¯ãªãã¯ããŸããã ãã®URLã«é¢ããŠã«ãŒã«ãå®è¡ããçµæãããã«åŸãããŸããã
ã¹ãããïŒ3ïŒPermanent Forwardingãã€ã³ã¹ããŒã«ãã
次ã«ãçä¿¡URLã®æ£èŠè¡šçŸã«äžèŽããã¢ã¯ã·ã§ã³ãèšå®ããŸãã
äžèšã§ã¯ããã¢ã¯ã·ã§ã³ã¿ã€ããããããããŠã³ãªã¹ããããªãã€ã¬ã¯ããã¢ã¯ã·ã§ã³ã«èšå®ããŸãã ããªãã€ã¬ã¯ãã¿ã€ããã¯HTTP 301ããŒããã³ããªãã€ã¬ã¯ãã§ãããæ€çŽ¢ãšã³ãžã³ããªãã€ã¬ã¯ãã«åŸãããšãä¿èšŒããŸãã
ããªãã€ã¬ã¯ãURLãããããã£ãèšå®ããŸãã
{RïŒ1} /
ããã¯ãWebã¯ã©ã€ã¢ã³ããªã¯ãšã¹ããæ°ããURLã«ãªãã€ã¬ã¯ãããå
ã®URLãããDefault.aspxãã®æåŸã®éšåãç Žæ£ããããšãæå³ããŸãã ããšãã°ããªã¯ãšã¹ã
http://scottgu.com/default.aspxã®å Žåããªãã€ã¬ã¯ãã¯
http://scottgu.com/ã«ãªãã
httpïŒ//scottgu.com/photos/default.aspxã®å Žåã¯
http://scottgu.comã«ãªããŸãã
/åç/ ã
æ£èŠè¡šçŸã®æ§æèŠçŽ ã{RïŒN}ããN> = 0ã¯ããã¯ãªã³ã¯ãšåŒã°ããNã¯ããã¯ãªã³ã¯ã€ã³ããã¯ã¹ã§ãã ãã¿ãŒã³ãïŒã*ïŒïŒ/ïŒDefault \ .aspx $ãã®å Žåãçä¿¡URLããproducts / Default.aspxãã®å Žåã{RïŒ0}ã«ã¯ãproducts / Default.aspxããš{ RïŒ1}-ã補åãã ãŠãŒã¶ãŒããªãã€ã¬ã¯ãããå€{RïŒ1}ã䜿çšããŸãã
ã¹ãããïŒ4ïŒã«ãŒã«ãä¿åããŠé©çšãã
æåŸã®æé ã¯ãIIS管çããã«ã®å³äžé
ã«ãã[é©çš]ãã¿ã³ãã¯ãªãã¯ããããšã§ããããã«ãããã¢ããªã±ãŒã·ã§ã³ã®ãã¹ãŠã®ã«ãŒããã£ã¬ã¯ããªïŒ<system.webServer / rewrite>ã»ã¯ã·ã§ã³ïŒã®URLæžãæãã«ãŒã«ãweb.configã«ä¿åãããŸãã
< configuration >
< system.webServer >
< rewrite >
< rules >
< rule name ="Default Document" stopProcessing ="true" >
< match url ="(.*?)/?Default\.aspx$" />
< action type ="Redirect" url ="{R:1}/" />
</ rule >
</ rules >
</ rewrite >
</ system.webServer >
</ configuration >
IIS 7.xãšASP.NETã¯åãweb.configãã¡ã€ã«ã§æ©èœãããããVisual Studioã䜿çšããŠäžèšã®ã³ãŒããå®éã«web.configãã¡ã€ã«ã«ã³ããŒããŠè²Œãä»ããããšãã§ãã管çããã«ã§ãã¹ãŠãæ§æããå¿
èŠããªããªããŸãã ãããŠãASP.NETã¢ããªã±ãŒã·ã§ã³ã䜿çšããŠURLæžãæãã«ãŒã«ãè¿œå ããã³æ¡åŒµããã®ãããã«ç°¡åã«ãªããŸããã
ã¹ããã5ïŒã«ãŒã«ã®ãã¹ã
ã«ãŒã«ãä¿åããã®ã§ããã¹ãããŠã¿ãŸãããã ç§ã®ãµã€ãã§æ¬¡ã®ãªã³ã¯ãè©ŠããŠãã ããã
http://scottgu.com/
http://scottgu.com/default.aspx
2çªç®ã®ãªã³ã¯ãæåã®ãªã³ã¯ã«èªåçã«ãªãã€ã¬ã¯ãããããšã«æ³šæããŠãã ããã
äŸ2ïŒURLã®æåã®ã±ãŒã¹
äžèšã§èª¬æããå¥ã®äžè¬çãªåé¡ã¯
ãæ€çŽ¢ãšã³ãžã³ã®
倧æåãšå°æåã®åºå¥ã§ãã ã€ãŸããæ€çŽ¢ãšã³ãžã³ã¯äž¡æ¹ã®ãªã³ã¯ã®ã©ã³ãã³ã°ãåå¥ã«èšç®ããŸãã
http://scottgu.com/Albums.aspx
http://scottgu.com/albums.aspx
ãããä¿®æ£ããã«ã¯ãæåã®ãªã³ã¯ã«ç§»åãã人ã
èªåçã«2çªç®ã®ãªã³ã¯ã«
ãªãã€ã¬ã¯ãããæ°ããIISæžãæãã«ãŒã«ãè¿œå ããŸãã åãšåæ§ã«ãHTTPãªãã€ã¬ã¯ããæ°žç¶çãªãã®ãšããŠèšå®ããŸãã
ã«ãŒã«ãäœæããã«ã¯ãURL Rewrite管çããã«ã®[ã«ãŒã«ã®è¿œå ]ãã¿ã³ãããäžåºŠã¯ãªãã¯ããŸãã
ããã©ã³ã¯ã«ãŒã«ããäœæãã以åã®ç¶æ³ãšã¯ç°ãªããçµã¿èŸŒã¿ã«ãŒã«ãã³ãã¬ãŒããå°æåã®URLã匷å¶ãããã䜿çšããŸãã [OK]ãã¯ãªãã¯ãããšã次ã®ãã€ã¢ãã°ã衚瀺ãããæå³ã確èªããããã«æ±ããããŸãã
[ã¯ã]ãã¯ãªãã¯ãããšãçä¿¡URLã«å€§æåãå«ãŸããå Žåãå®å
šã«å€§æåã®URLãžã®æ°žç¶çãªãªãã€ã¬ã¯ããèªåçã«å®è¡ããæ¢è£œã®ã«ãŒã«ãååŸãããŸãã
[é©çš]ãã¿ã³ãã¯ãªãã¯ããŠããã¹ãŠã®åä¿¡URLã«é©çšããããšã«ãããäœãå€æŽããã«ã«ãŒã«ãä¿åã§ããŸãã
ç§ã®ãµã€ã
www.scottgu.comã¯ASP.NET Web
Fromsã䜿çšããŠãããããASP.NETã«çµã¿èŸŒãŸãããWebResource.axdããã³ãã©ãŒãé€å€ããæ¡ä»¶ãè¿œå ããããšã«ãããäžèšã®ã«ãŒã«ãå°ãå€æŽããå¿
èŠããããŸãã WebResource.axdãã³ãã©ãŒã®URLã¯ãããŒãžäžã®ãµãŒããŒã³ã³ãããŒã«ããã®ã¿ååŸãããå€éšãµã€ãããã¯ååŸãããŸããã
è¯ããã¥ãŒã¹ã¯ãURLãç¡å¹ã«ããæ¡ä»¶ãè¿œå ããããšã§ããäžéšã®URLã®ã«ãŒã«ã®æžãæãã¯éåžžã«ç°¡åã§ãã 以äžã®åœ¢åŒã§ã°ã«ãŒããæ¡ä»¶ããå±éããã ãã§ãã
次ã«ããè¿œå ããã¿ã³ãã¯ãªãã¯ããŸãã
äžèšã®[æ¡ä»¶]ãã£ãŒã«ãã«{URL}ãå
¥åããURLãæååå
ã®ãWebResource.axdãã®ååšã確èªããæ£èŠè¡šçŸæ¡ä»¶ãšäžèŽããªãå Žåã«ã®ã¿ã«ãŒã«ãå®è¡ããããšã瀺ããŸããã ããã«ãããWebResource.axdãžã®ãã¹ãŠã®ãªã¯ãšã¹ãããå°æåã®URLã衚瀺ããã«çŽæ¥éä¿¡ãããŸãã
ååã«å€§æåãå«ãŸããŠãããªã³ã¯.jpgã.cssãããã³.jsãã¡ã€ã«ãªã©ã®éçãªãœãŒã¹ãæ¢ã«ãµã€ãã«ããå Žåã¯ãURLãªãã€ã¬ã¯ãããã£ã³ã»ã«ããæ¡ä»¶ãè¿œå ããå¿
èŠãããå¯èœæ§ãé«ãããšã«æ³šæããŠãã ããå°æåã§ã ãããã®ã«ãŒã«ãè¿œå ããªããŠããµã€ãã¯æ£åžžã«æ©èœããŸãããå
éšãªãœãŒã¹ã®å Žåãå°æåã§è¿œå ã®ãªãã€ã¬ã¯ããè¡ãå¿
èŠã¯ãªãããããã®ãããªã«ãŒã«ãè¿œå ããæ¹ãé©åã§ãã[OK]ãã¿ã³ãã¯ãªãã¯ããŠå°æåã®ã«ãŒã«ãé©çšãããšã管çããã«ã¯æ°ããã«ãŒã«ãweb.configãã¡ã€ã«ã«ä¿åããŸãã
< configuration >
< system.webServer >
< rewrite >
< rules >
< rule name ="Default Document" stopProcessing ="true" >
< match url ="(.*?)/?Default\.aspx$" />
< action type ="Redirect" url ="{R:1}/" />
</ rule >
< rule name ="Lower Case URLs" stopProcessing ="true" >
< match url ="[AZ]" ignoreCase ="false" />
< conditions logicalGrouping ="MatchAll" trackAllCaptures ="false" >
< add input ="{URL}" pattern ="WebResource.axd" negate ="true" />
</ conditions >
< action type ="Redirect" url ="{ToLower:{URL}}" />
</ rule >
</ rules >
</ rewrite >
</ system.webServer >
</ configuration >
ã«ãŒã«ããã¹ããã
ã«ãŒã«ãä¿åããã®ã§ããµã€ãã§è©ŠããŠã¿ãŸãããã 以äžã®ãªã³ã¯ããã©ã£ãŠã¿ãŠãã ããã
http://scottgu.com/Albums.aspx
http://scottgu.com/albums.aspx
倧æåã®ãAããæã€æåã®URLã¯èªåçã«å°æåã®URLã«ãããããããããšã«æ³šæããŠãã ããã
äŸ3ïŒæ«å°Ÿã®ã¹ã©ãã·ã¥
ç§ãèšåããå¥ã®äžè¬çãªSEOã®åé¡ã¯ãURLã®æåŸã®ã¹ã©ãã·ã¥ã§ãã æåŸã®ã¹ã©ãã·ã¥ã¯ãæ€çŽ¢ãšã³ãžã³ãURLã2ã€ã®ç°ãªããã®ãšèŠãªãå¥ã®ç¶æ³ãäœæããŸãã
http://scottgu.com
http://scottgu.com/
ãããä¿®æ£ããã«ã¯ãæåã®ãªã³ã¯ïŒæåŸã«ã¹ã©ãã·ã¥ããªãïŒãã¯ãªãã¯ãã人ã
èªåçã« 2çªç®ã®ãªã³ã¯ã«
ãªãã€ã¬ã¯ãããæ°ããIISæžãæãã«ãŒã«ãè¿œå ããŸãã åãšåæ§ã«ãHTTPãªãã€ã¬ã¯ããæ°žç¶çãªãã®ãšããŠèšå®ããŸãã
ã«ãŒã«ãäœæããã«ã¯ãURL Rewrite管çããã«ã®[ã«ãŒã«ã®è¿œå ]ãã¿ã³ãããäžåºŠã¯ãªãã¯ããŸãã
Rewrite URL管çããŒã«ã«ã¯ãå®çŸ©æžã¿ã®ã«ãŒã«ãã³ãã¬ãŒããæ«å°Ÿã®ã¹ã©ãã·ã¥èšå·ãè¿œå ãŸãã¯åé€ããããå«ãŸããŠããŸãã
次ã«ã衚瀺ããããã€ã¢ãã°ã§ãã¢ãã¬ã¹ã«ãªãå Žåã«æåŸã«ã¹ã©ãã·ã¥ãä»ããURLã«ãŠãŒã¶ãŒãèªåçã«ãªãã€ã¬ã¯ãããã«ãŒã«ãäœæãããã©ãããå°ããããŸãã
[OK]ãã¯ãªãã¯ãããšãæºåãã§ããã«ãŒã«ã衚瀺ãããŸãã
åã®å°æåã®ã«ãŒã«ãšåæ§ã«ãWebResource.axdã«ãŒã«ããã¢ãã¬ã¹ãé€å€ããè¿œå ã®æ¡ä»¶ãè¿œå ããŸãã ãã®çµæãweb.configãã¡ã€ã«ã§æ¬¡ã®ããã«ãªããŸãã
< configuration >
< system.webServer >
< rewrite >
< rules >
< rule name ="Default Document" stopProcessing ="true" >
< match url ="(.*?)/?Default\.aspx$" />
< action type ="Redirect" url ="{R:1}/" />
</ rule >
< rule name ="Lower Case URLs" stopProcessing ="true" >
< match url ="[AZ]" ignoreCase ="false" />
< conditions logicalGrouping ="MatchAll" trackAllCaptures ="false" >
< add input ="{URL}" pattern ="WebResource.axd" negate ="true" />
</ conditions >
< action type ="Redirect" url ="{ToLower:{URL}}" />
</ rule >
< rule name ="Trailing Slash" stopProcessing ="true" >
< match url ="(.*[^/])$" />
< conditions logicalGrouping ="MatchAll" trackAllCaptures ="false" >
< add input ="{REQUEST_FILENAME}" matchType ="IsDirectory" negate ="true" />
< add input ="{REQUEST_FILENAME}" matchType ="IsFile" negate ="true" />
< add input ="{URL}" pattern ="WebResource.axd" negate ="true" />
</ conditions >
< action type ="Redirect" url ="{R:1}/" />
</ rule >
</ rules >
</ rewrite >
</ system.webServer >
</ configuration >
ã«ãŒã«ããã¹ããã
ã«ãŒã«ã®æºåãã§ããã®ã§ããã¹ãããŠã¿ãŸãããã
http://scottgu.com
http://scottgu.com/
æåã®URLïŒæ«å°Ÿã«ã¹ã©ãã·ã¥ããªãïŒã¯ãæ«å°Ÿã®ã¹ã©ãã·ã¥ã®URLã«èªåçã«ãžã£ã³ãããããšã«æ³šæããŠãã ããã ãªãã€ã¬ã¯ãã¯æ°žç¶çã§ãããããæ€çŽ¢ãšã³ãžã³ã¯æ°ããURLã«åŸã£ãŠããŒãžã©ã³ã¯ãæŽæ°ããŸãã
äŸ4ïŒããŒã¹ã¢ãã¬ã¹
ãããŠæåŸã«ãSEOã®æåŸã®åé¡ã§ããããµã€ããURLã®2ã€ã®ããŒãžã§ã³ã§åäœãããšãã®ãªãã·ã§ã³-ãwwwããã¬ãã£ãã¯ã¹ãããšãªãïŒ
http://www.scottgu.com/albums.aspx
http://scottgu.com/albums.aspx
ãããä¿®æ£ããã«ã¯ãIISæžãæãã«ãŒã«ãè¿œå ããŸãããã®ã«ãŒã«ã¯ãæåã®ãªã³ã¯ïŒãwwwããã¬ãã£ãã¯ã¹ä»ãïŒãã¯ãªãã¯ãããã¹ãŠã®ãŠãŒã¶ãŒã2çªç®ã®ãªã³ã¯ã«èªåçã«ãªãã€ã¬ã¯ãããŸãã ç¹°ãè¿ããŸããã転éã¯æ°žç¶çã§ãã
ã«ãŒã«ãäœæããã«ã¯ãURL Rewrite管çããã«ã®[ã«ãŒã«ã®è¿œå ]ãã¿ã³ãããäžåºŠã¯ãªãã¯ããŸãã
Rewrite URL管çããŒã«ã«ã¯ãå®çŸ©æžã¿ã®ãæ£èŠãã¡ã€ã³åãã«ãŒã«ãã³ãã¬ãŒããå«ãŸããŠããŸãã
次ã«ã衚瀺ããããã€ã¢ãã°ã§ããŠãŒã¶ãŒããã©ã€ããªURLã«èªåçã«ãªãã€ã¬ã¯ãããã«ãŒã«ãäœæãããã©ãããå°ããããŸãã
äžèšã§ããŠã§ãã«äœ¿çšãããäž»ãªã¢ãã¬ã¹scottgu.comãå
¥åããŸããã [OK]ãã¯ãªãã¯ãããšãweb.configãã¡ã€ã«ã«å®æããã«ãŒã«ã衚瀺ãããŸãã
< configuration >
< system.webServer >
< rewrite >
< rules >
< rule name ="Cannonical Hostname" >
< match url ="(.*)" />
< conditions logicalGrouping ="MatchAll" trackAllCaptures ="false" >
< add input ="{HTTP_HOST}" pattern ="^scottgu\.com$" negate ="true" />
</ conditions >
< action type ="Redirect" url ="http://scottgu.com/{R:1}" />
</ rule >
< rule name ="Default Document" stopProcessing ="true" >
< match url ="(.*?)/?Default\.aspx$" />
< action type ="Redirect" url ="{R:1}/" />
</ rule >
< rule name ="Lower Case URLs" stopProcessing ="true" >
< match url ="[AZ]" ignoreCase ="false" />
< conditions logicalGrouping ="MatchAll" trackAllCaptures ="false" >
< add input ="{URL}" pattern ="WebResource.axd" negate ="true" />
</ conditions >
< action type ="Redirect" url ="{ToLower:{URL}}" />
</ rule >
< rule name ="Trailing Slash" stopProcessing ="true" >
< match url ="(.*[^/])$" />
< conditions logicalGrouping ="MatchAll" trackAllCaptures ="false" >
< add input ="{REQUEST_FILENAME}" matchType ="IsDirectory" negate ="true" />
< add input ="{REQUEST_FILENAME}" matchType ="IsFile" negate ="true" />
< add input ="{URL}" pattern ="WebResource.axd" negate ="true" />
</ conditions >
< action type ="Redirect" url ="{R:1}/" />
</ rule >
</ rules >
</ rewrite >
</ system.webServer >
</ configuration >
ã«ãŒã«ããã¹ããã
ã«ãŒã«ã®æºåãã§ããã®ã§ããã¹ãããŠã¿ãŸãããã
http://www.scottgu.com/albums.aspx
http://scottgu.com/albums.aspx
æåã®ã¢ãã¬ã¹ïŒãã¬ãã£ãã¯ã¹ãwwwãïŒã¯ããã¬ãã£ãã¯ã¹ã®ãªã2çªç®ã®URLã«èªåçã«ãªãã€ã¬ã¯ãããããšã«æ³šæããŠãã ããã
SEOãæ¹åãã4ã€ã®ç°¡åãªã«ãŒã«
äžèšã®4ã€ã®SEOã«ãŒã«ã䜿çšããã®ã¯éåžžã«ç°¡åã§ãæ¢åã®ãµã€ãã®ã»ããã¢ããã«ã¯æ倧15åããããŸãã
URLæžãæãæ¡åŒµæ©èœãªã©ã®ãœãªã¥ãŒã·ã§ã³ã䜿çšããå©ç¹ã¯ãã¢ããªã±ãŒã·ã§ã³ã®ã³ãŒããå€æŽãããããµã€ããžã®æ¢åã®ãªã³ã¯ãäžæãããããå¿
èŠããªãããšã§ãã å€ããªã³ã¯ã䜿çšããŠãµã€ãã«ã¢ã¯ã»ã¹ãããŠãŒã¶ãŒã¯ãæ°ããURLã«èªåçã«ãªãã€ã¬ã¯ããããŸãã ãããŠãæ€çŽ¢ãšã³ãžã³ã¯æ Œä»ããäžãå§ããããªãã®ãµã€ãã®ããžã·ã§ã³ãäžæããŸãã
æžãæãURLã«ãŒã«ãå°æ¥å€æŽããã®ã¯ãweb.configãã¡ã€ã«ãç·šéããããIIS 7.x管çããã«ã䜿çšããããšã§éåžžã«ç°¡åã§ãã
ã«ãŒã«ãã¯ãªãã¯ãããšããšãã£ã¿ãŒãéããã«ãŒã«ãå€æŽããŠä¿åã§ããŸãã
ãŸãšã
ãã¹ãŠã®éçºè
ã¯ãå
¬éãµã€ãã®SEOãæ¹åããããšèããŠããŸãã
SEO ToolkitããŸã ããŠã³ããŒãããŠããªãå Žåã¯ãä»
ããããŠã³ããŒãããŠãµã€ããåæããŠãã ããã
ASP.NET MVCããã³
ASP.NET Web Forms 4ã®æ°ããURLã«ãŒãã£ã³ã°æ©èœã«ãããã¢ããªã±ãŒã·ã§ã³ã®æ§ç¯ãããã«ç°¡åã«ãªããURLãããã«å¶åŸ¡ã§ããããã«ãªããŸãã
å
ã»ã©ã話ããã
URL Rewrite Extensionãªã©ã®ããŒã«ã¯ãã³ãŒããå€æŽããããšãªããç°¡åã«ãå€éšãµã€ãã®ãããªãã¯ãã¡ã€ã³ã«ããURLãæ¹åããã®ã«åœ¹ç«ã¡ãŸãã
URL Rewrite Extensionã¯ãSEOã ãã§ãªããä»åŸã®èšäºã§èª¬æããæ©èœãããã¯ããã«å€ãã®æ©èœãæäŸããŸãã