Where should the sitemap be placed in the subdirectory or root directory, and what determines the range of covered addresses?

📅 October 12, 2026 👁️ 8

Where should the sitemap be placed in the subdirectory or root directory, and what determines the range of covered addresses? It is decided by the directory attribution rules of the Sitemap protocol: a sitemap can only contain addresses with the same prefix as its path. Placed in the root directory, it can cover the entire site addresses, while placed in a subdirectory can only cover the pages under the prefix of that subdirectory. Other directory addresses written in are invalid. Therefore, the coverage range is not determined by the filename, nor by the submission action, but by the file placement path.

How are the attribution rules written in the protocol?

The sitemaps.org protocol provides a clear example: Site maps located in the /catalog/ directory can include any addresses that start with /catalog/, but cannot include any addresses that start with /images/. The protocol also provides the basis for this rule: If you have the right to modify the site map file under a path, it is assumed that you also have the right to provide information about the addresses under the prefix of that path. In other words, the placement itself is a declaration of authority, and the protocol uses the location to determine which addresses the map's statements apply to.

Which pages will be missed if placed in a subdirectory?

Typical misplacement involves generating the map under a specific column directory, such as only covering the prefix of articles, so that the image directory, tag aggregation page, and single page are all out of the coverage range.This leak is not visible in the background: the map file itself is valid, and there are no errors when submitted; the missing addresses simply never appear on the list. There are two steps to determine the method: compare the number of addresses in the map with the actual content level of the sites, and see how big the gap is;Further check a few addresses that are not under the map prefix, to confirm whether they should have been included originally. The site map of AnQiCMS is automatically generated by the system, and the check after generation is whether the placement path matches the intended prefix.

How do you choose between the two feasible methods?

A site with a simple address structure, directly placing the map in the root directory, covering the entire site with one map, and low maintenance costs. For sites with a lot of content and clear column division, you can divide according to the directory: each prefix has a sub-map, placed in the corresponding directory, and then a summary index file is used to submit them. The advantage of fragmentation is that each column can be updated independently without affecting each other, but the cost is that an additional index needs to be maintained. Another thing to note is that when the address structure is migrated, the old address needs to be matched with a 301 redirect to point to the new address. The site map itself does not bear the responsibility of jumping, and these two things cannot be replaced by each other.

Why can't the problem of cross-domain be solved by moving the position?

Prefix rules are set by the domain boundary, addresses across subdomains should not be solved by moving files around: each subdomain should have its own map and submit it on the corresponding search platform. Similarly, when submitting the same map to multiple search engines, it should also be submitted separately on each platform, and the submission action cannot be shared. Keeping the location rules and submission rules separate will prevent confusion such as 'The map has been moved to the root directory, but why is another subdomain still not indexed' - that is a submission issue, not a coverage issue.

Common questions

Question: Does placing the map in the root directory mean the entire site is indexed?Answer: No. The scope of coverage is the premise of collection, not the collection itself; content quality, crawling frequency, and address accessibility still independently play their roles.

Question: Do index files also need to follow the prefix rule?Answer: Index files and their summarized sub-maps are each constrained by the prefix of their respective paths. It is most convenient to place them according to the prefix during partitioning.

Question: How should the map be handled after changing the domain name?Answer: Generate a new map under the new domain and submit it, configure 301 redirect transition for the old domain address, and do not continue listing the old addresses in the new map.

Related articles

Should static files be taken along with the backup, and which items should be verified during the recovery exercise?

Backup suggestion: take static files along with the backup: AnQiCMS's backup and recovery supports the data range including static files, only exporting the database will leave the pictures on the detail page, generated pages, and upload directories empty after recovery. This article provides the method for judging the backup range, the five items list for recovery drill verification, as well as the differences in drills under container deployment and panel deployment, and the frequency recommendation for retention

2026-10-12

Which one to use for batch import: compressed package or table, and what scenarios are suitable for each source

Supports batch import of two sources: ZIP compressed packages and Excel tables: the compressed package includes the main text and resource files together, suitable for the entire site or column migration; the table is a structured field, suitable for building entries in bulk first and then filling in content item by item. This article provides the basis for selection, field mapping to prepare before import, and the categories, aliases, image placement, and push actions that must be checked after import.

2026-10-12

Should the site map list the translated pages and original pages together?

The translation page of a multilingual site is listed in the sitemap in three ways: only list the main language, list both languages, and list both languages separately by directory. The choice depends on whether the page really has independent content value, whether the translation is generated by the whole page or written manually. This article gives the method of judgment, the applicable scenarios of the three listing methods, common mistakes, and the respective duties of robots configuration and sitemap.

2026-10-12

The words in the keyword library appear repeatedly in the text, and whether the anchor text will be too dense.

The automatic anchor text handling of in-site keywords is based on hits, the wider the vocabulary, the more frequently the same word appears in the text, the denser the generated internal links will be, and the readability of the text and the distribution of link weights will be diluted. This article explains why the density goes out of control, the three configuration ideas to check before going online, how to manage the keyword library hierarchically, and its relationship with sensitive word filtering and keyword replacement in sequence.

2026-10-12

How to batch replace old links within the site after changing the domain name or column name, and what should be kept before the change

The final sequence of the revised version is: First, make a full data backup and leave a position for rollback; then use the full site replacement tool to batch replace keywords or links in the main text; then configure 301 redirects for the old addresses and connect existing external references to new addresses; finally, manually check the navigation settings and single page entry. The replacement tool manages the main text and link content, navigation, watermark, email reminders and other site settings do not automatically adjust with the replacement and need to be confirmed item by item.

2026-10-12

Documents deleted can still be retrieved from the recycle bin, should you backup once before retrieving?

In AnQiCMS, deleting a formal document is not a physical deletion, the document will be moved to the recycle bin, and the content can still be restored; documents have four statuses: formal, draft, pending release, and recycle bin. The draft can be previewed with the preview parameter. It is recommended to make a complete data backup (including static files) before the recovery operation, to avoid the overlapping of recovered content with the existing version, and to check the consistency of the status and visibility on the front page after recovery.

2026-10-13

After the minor version upgrade, the old version of the table file format is no longer supported, where will the content import process of the site break in several cycles?

A minor upgrade to the data read and write component may directly remove support for the old table format, causing batch import to break at four points: template header, historical files, script connection, and batch tasks. Remedies are arranged in three paths: convert format, keep old files, and change to import interface; AnQiCMS provides a self-check list for ZIP and Excel batch import and import/archive interfaces.

2026-10-13

The upgrade announcement requires backup of files, databases, and custom templates. What is considered secure for each type of backup?

The PbootCMS V3.2.29 upgrade announcement lists 'backing up website files, database, and custom templates' as a prerequisite action, which is a typical requirement for the backup of the three-in-one set in peer CMS systems. This article discusses the verification points one by one: checking the completeness of the file package, ensuring the database can be restored with structure and data in a new instance, and checking whether the front-end style of the custom template returns to the pre-upgrade state; and combining with AnQiCMS's built-in capabilities such as backup data overlay, static file backup, and v3.6.5 template backup expansion to demonstrate the exercise steps.

2026-10-13