
外掛標籤
開發者團隊
原文外掛簡介
Search engines get the XML they need at /sitemap.xml. A person who opens the same address gets a page set in your theme’s own colours and fonts, with every page listed, grouped by section and searchable.
What it lists
The home page, and every published post, page and public custom post type, each dated from its last edit.
The archive of each category, tag and public taxonomy term in use.
Each post’s featured image, for image search.
What it leaves out
Pages an SEO plugin marks noindex: Yoast SEO, Rank Math, SEOPress and The SEO Framework.
Password-protected, private and draft posts, and attachment pages.
How the two readers are told apart
A browser opening a page sends Sec-Fetch-Dest: document and asks for HTML; crawlers send neither. Those two headers decide which answer is served. No user agent is read, and both answers list exactly the same addresses. The page is noindex and cached privately.
What it changes
WordPress’s own sitemap (/wp-sitemap.xml) is turned off and redirects to /sitemap.xml. Deactivating the plugin brings it back.
robots.txt names the sitemap.
If Yoast SEO, Rank Math or All in One SEO also makes a sitemap, a notice says how to turn theirs off.
Languages
With Polylang or WPML, translations are linked with hreflang, including x-default, and unpublished translations are left out. Polylang is tested end to end; WPML support is in beta. The page speaks English or French, following the site’s language.
The plugin is open source: github.com/maison-gr/maisongr-sitemap-wordpress.
