
內容簡介
這是 Yoast SEO 外掛缺少的功能。將 sitemap 加入 robots.txt 是一個非常重要的 SEO 步驟,因為許多機器人(包括 Google)會自動在 robots.txt 檔案中搜尋 sitemap。
如果您的伺服器上沒有獨立的 robots.txt 檔案,WordPress 會自動產生一個虛擬的 robots.txt 檔案並加入必要的指令。
此外掛將會在虛擬的 robots.txt 檔案中加入 Yoast SEO 外掛的 XML Sitemap URL,以便搜尋機器人可以很容易地找到您的 sitemap 並爬取您的網站。
多站點網路安裝
此外掛在多站點網路安裝上也可以正常運作,為所有子網站添加正確的 sitemap。此外掛會檢查 Yoast SEO 是否啟用並檢查網站的 XML Sitemap 是否啟用,以確保只有在 sitemap 存在时才會添加其 URL。
您想要貢獻或幫助改進此外掛嗎?
您可以在 GitHub 上找到它:https://github.com/Surbma/surbma-yoast-seo-sitemap-to-robotstxt
您可以在 GitHub 上查找我的其他外掛和項目:
https://github.com/Surbma
請隨意貢獻、幫助或為我的外掛、主題和其他項目推薦新功能。
您想要了解更多關於我的資訊嗎?
請造訪我的網頁:Surbma.com
外掛標籤
開發者團隊
② 後台搜尋「Surbma | Yoast SEO Sitemap to robots.txt」→ 直接安裝(推薦)
原文外掛簡介
A missing feature from Yoast SEO plugin. This is a very important SEO step to add your sitemap to the robots.txt, as a lot of bots (Google also) automatically search for sitemaps in the robots.txt file.
If you don’t have a separate robots.txt file on the server, than WordPress automatically generates a virtual robots.txt file with the necessary directives.
This plugin will add the Yoast SEO plugin’s XML Sitemap URL to the virtual robots.txt file, so search bots will find your sitemap and can crawl your site easily.
Multisite Network installs
This plugin is also working on Multisite installs, adding the right sitemap for all your subsites. The plugin checks, if Yoast SEO plugin is activated and if the XML Sitemap is enabled on the sites, so it will add the sitemap URL only, if the sitemap exists.
Do you want to contribute or help improving this plugin?
You can find it on GitHub: https://github.com/Surbma/surbma-yoast-seo-sitemap-to-robotstxt
You can find my other plugins and projects on GitHub:
https://github.com/Surbma
Please feel free to contribute, help or recommend any new features for my plugins, themes and other projects.
Do you want to know more about me?
Visit my webpage: Surbma.com
