- add_filter(‘wp_sitemaps_enabled’, ‘__return_false’);
將上面代碼添加如wordpress中可以防止通過地圖對(duì)wordpress文章的采集:
默認(rèn)會(huì)顯示的幾個(gè)代碼:
- /wp–sitemap–posts–post–1.xml
- ?
- /wp–sitemap–posts–page–1.xml
- ?
- /wp–sitemap–taxonomies–category–1.xml
- ?
- /wp–sitemap–users–1.xml