[ã¬ãã«: ä¸ç´]
ãã®è¨äºã§ã¯ãWordpress 5.5 ã«æ¨æºå®è£ ããããµã¤ããããçææ©è½ãç¡å¹åããæ¹æ³ãç´¹ä»ãã¾ãã
WordPress ã®ã³ã¢ XML ãµã¤ããããæ©è½
ãªãªã¼ã¹ãããã°ããã® WordPress 5.5ï¼ãã®è¨äºãå
¬éãã¦ããæç¹ã§ã®ææ°ãã¼ã¸ã§ã³ï¼ã¯ãæ¤ç´¢ã¨ã³ã¸ã³åãã® XML ãµã¤ãããããä½æããæ©è½ãã³ã¢æ©è½ã¨ãã¦æ¨æºå®è£
ãã¾ããã
ããã¾ã§ãµã¤ããããçæã«ã¯ãã©ã°ã¤ã³ãå©ç¨ãã¦ãã¾ããã
ã³ã¢ ãµã¤ãããã㯠WordPress ãã¤ã³ã¹ãã¼ã«ãããã£ã¬ã¯ããªã®ç´ä¸ã«ä½ããã¾ãã
ãã¡ã¤ã«å㯠wp-sitemap.xml ã§ãã
example.com ã« WordPress ãã¤ã³ã¹ãã¼ã«ãã¦ããããµã¤ããããã®å ´æ㯠example.com/wp-sitemap.xml
ã«ãªãã¾ãã
ã¢ã¯ã»ã¹ãããµã¤ããããã¯ãããªæãã§ãï¼æ£ç¢ºã«ã¯ããµã¤ãããã ã¤ã³ããã¯ã¹ ãã¡ã¤ã«ãçæããï¼ã
ãã©ã°ã¤ã³ãä¸è¦ã«ãªãã®ã§ä¾¿å©ã«ãªãããã«æããã®ã§ãããããµã¤ãããããçæãããã ãã¨ãããããã¦åºæ¬çãªè½åããåãã¦ãã¾ããã
ãã¨ãã°ã次㮠2 ç¹ã¯ããªãè´å½çã§ãã
- ãã¹ã¦ã®å ¬é URL ããµã¤ããããã«ç»é²ããï¼ç»é²ãã URL ãé¸æã§ããªãï¼
lastmod
ã追å ããªãï¼æ´æ°æ¥æãæ¤ç´¢ã¨ã³ã¸ã³ã«éç¥ã§ããªãï¼
ã³ã¼ãã追å ã»ç·¨éãããã¨ã§ã«ã¹ã¿ãã¤ãºå¯è½ã§ãããããã¾ã§ãããªããã©ã°ã¤ã³ã使ã£ãã»ãã楽ã ãæè»ã«å¯¾å¿ã§ãã¾ãã
SEO ã«ãã ããããããªããWordPress ã®ã³ã¢ ãµã¤ããããã¯å©ç¨ããããªãã¨ããããèããã§ãããã
ããããªãããããã¾ãæ®å¿µãªãã¨ã«ããã§ãã¯ããã¯ã¹ãå¤ãã°ç¡å¹åã§ããã¨ãããã®ã§ãããã¾ããï¼ããã¯ãåæã«ãµã¤ãããããä½æã管çç»é¢ããã¯ã¾ã£ããå¶å¾¡ã§ããªãï¼ã
ããã§ãã³ã¢ ãµã¤ãããããç¡å¹åããæ¹æ³ããã®ãã¨ç´¹ä»ãã¾ãã
æåã§å®å ¨ç¡å¹åãã
æåã§ãã³ã¢ ãµã¤ããããã®çæãå®å
¨ã«ç¡å¹ã«ã§ãã¾ãã
次ã®ã³ã¼ãããå©ç¨ãã¦ãããã¼ãã®é¢æ°ãã¡ã¤ã« (function.php
) ã«è¿½å ãã¾ãï¼ãã¼ãã® function.php
ãããªãã¦ãæ©è½ããã¨æãã¾ãï¼ã
add_filter( 'wp_sitemaps_enabled', '__return_false' );
ãã®ã³ã¼ãã追å ããã¨ãµã¤ãããããçæãããªããªãã¾ã
ãµã¤ããããã® URL ã«ã¢ã¯ã»ã¹ãã㨠404 ãè¿ãã¾ãã
ãã©ã°ã¤ã³ãå©ç¨ãã
ãã¡ã¤ã«ããããã®ã¯æãã¨ããæ¹ã¯ããã©ã°ã¤ã³ãå©ç¨ãã¦ãããã§ãããã
Yoast SEO ã Slim SEO ãªã©ãµã¤ããããçææ©è½ãåãããã©ã°ã¤ã³ã®ææ°ãã¼ã¸ã§ã³ã¯ãWordPress ã®ã³ã¢ ãµã¤ãããããèªåã§ç¡å¹åãã¾ãã
æ¤ç´¢ã¨ã³ã¸ã³åãã®ãµã¤ããããã¨ãã¦ã¯ããããã®ãã©ã°ã¤ã³ãçæãããã®ãéä¿¡ãã¾ãã
ãã§ã«å©ç¨ãã¦ãããµã¤ããããã«ãªãã¤ã¬ã¯ããã
WordPress ã®ã³ã¢ ãµã¤ããããã® URL ãæ¢åã®ãµã¤ããããã® URL ã«ãªãã¤ã¬ã¯ããã¦ãããã§ãããã
å³å¯ã«è¨ãã°ãç¡å¹åã§ã¯ããã¾ããããã®æ¹æ³ã§ãåé¡ããã¾ããã
ãªãã¤ã¬ã¯ãæ¹æ³ã¯ããã¤ãããã¾ããããã¨ãã°ã·ã³ãã«ãªã®ã¯æ¬¡ã®è¨è¿°ã§ãï¼æ¢åã®ãµã¤ããããã sitemap.xml
ã®å ´åï¼ã
Redirect 301 /wp-sitemap.xml https://example.com/sitemap.xml
ç¡å¹åã¨ãããã¦ä½¿ããã¨ãã§ãã¾ãã
ã¡ãªã¿ã«åã¯ãªãã¤ã¬ã¯ããã¦ã¾ãã
robots.txt ã§ãããã¯
é¢æ°ãã¡ã¤ã«ã¯ããããããªããä»ä½¿ã£ã¦ãããµã¤ãããã ãã©ã°ã¤ã³ã«ã¯ç¡å¹æ©è½ãä»ãã¦ããªãããªãã¤ã¬ã¯ãè¨å®ãããããããªãã¨ããå°ã£ãã¡ããã«ã¯ï¼ç¬ï¼ãæçµæ段ã¨ã㦠robots.txt ã使ãã¾ãã
ã³ã¢ ãµã¤ããããã¸ã®ã¯ãã¼ã©ã®ã¢ã¯ã»ã¹ããããã¯ããããã«ã次ã®è¨è¿°ã robots.txt ã«è¿½å ãã¾ãã
Disallow: /wp-sitemap.xml
User-agent: *
ãåã®è¡ã«è¨è¿°ããwp-sitemap.xml
ã®ä¸èº«ãã¯ãã¼ã©ã¯èªããªããªãã¾ãã
robots.txt ã§å¶å¾¡ããæ¹æ³ãå³å¯ã«ã¯ç¡å¹åã§ã¯ãªããç¡çç¢çæãä¼´ãã¾ããããªãããã®åé¡ãèµ·ãããã¨ã¯ãªãã§ãããã
WordPress 5.5 ã«ãã¤ãã£ãå®è£
ãããã³ã¢ ãµã¤ããããçææ©è½ãç¡å¹åããæ¹æ³ã¯ä»¥ä¸ã§ãã
ã³ã¢ ãµã¤ãããããä¸è¦ãª WP ãµã¤ãã¯åèã«ãã¦ãã ããã
ã³ã¢ ãµã¤ãããããã®ãã®ãã«ã¹ã¿ãã¤ãºã§ãããã©ã°ã¤ã³ããã®ãã¡ç»å ´ããããããã¾ãããã