After opening multiple sites, should each site have its own site map and robots file?
When managing multiple sites with a single backend, the answer to Sitemap and Robots.txt is clear: separate by site, with each domain having its own copy. The reason is that search engine crawling, inclusion, and rule reading are all based on the domain unit——the robots file must be placed at the root path of the domain to take effect, and the sitemap must be submitted in the site owner tools corresponding to the domain. The program can be shared by a set, and problems will arise when these SEO configurations bound to the domain are shared.
Why do SEO files follow the domain instead of the program?
The spider determines what this site allows to be crawled, relying on accessing the robots configuration under the root path of the domain name; determining what pages this site has, relies on the sitemap submitted by the domain name. Both links are identified by the domain name, and the spider does not know or care about how many sets of programs are behind it.
Therefore, the correct mental model under a multi-site architecture is that the background program is a public asset repository, and robots, sitemaps, and push configurations are each domain's respective 'external facade'. AnQiCMS's multi-site management supports maintaining multiple independent sites on the same background, which is suitable for multi-brand, multi-theme scenarios, because it separates the site-level configuration from the global configuration.
The correct posture for generating site maps on each site
The sitemap should be automatically generated and maintained by site. Check three things: whether the Sitemap of each site only contains URLs under the domain name, mixing in addresses from other sites will reduce the overall credibility of the file; whether new content automatically enters the list of the corresponding site, relying on manual supplementing the file will eventually be missed; whether the form of addresses in the list is unified, after the change of the pseudo-static rules, the old form of addresses should be removed from the list and only the current used standard addresses should be retained.
Multilingual sites need to check one more layer: when different language versions belong to different domains or directories, the list should be submitted separately according to their respective entry points, do not feed a list of one domain to all language versions.
How to calculate the ownership of link promotion
When new content is accelerated to be discovered through promotion, the promotion action should also be calculated according to the site ownership: each domain submits its new links to the corresponding Baidu, Bing accounts, with independent quotas and success rates. A common mistake is that only the main site is configured with active promotion, and the content of the affiliated sites is sent out and always relies on the luck of the crawler, resulting in a significant difference in the inclusion rhythm.
The correct approach is to bind the 'publish' and 'push' actions into two steps: wherever the content is published, the push task of that site is triggered to avoid manual follow-up later.
Which settings can be shared and which must be separated
| Configuration item | Separate by site | Can be shared site-wide | Description |
|---|---|---|---|
| Robots.txt rules | Is | — | Place in the root path of each domain, rules are independent |
| Site map | Is | — | Only contain this site's URL, each site submits separately |
| Baidu/Bing active push | Is | — | Quotas and accounts are bound by domain |
| 301 redirect rules | Is | — | Redirects are only condensed within this domain. |
| Sensitive words and review rules | Can share a set of libraries | Is | Content compliance criteria are usually consistent |
| User and permission system | — | Is | The background account is one set |
Consequences of mixed use of configuration files in the site cluster
Provide a set of robots or a site map to all sites, which saves configuration costs in the short term, but the cost is later: when a site wants to be crawled more extensively, it is blocked by the Disallow rules shared; when a site has违规 content that needs to be restricted, the rules change and harm other sites; after the site map is mixed with domain names, the search engine loses accurate recognition of
Common questions
Q: Multiple site content is almost the same, can a shared site map be used?A: It is not recommended. Similar content itself is judged to be duplicate, and using the same list again will make the crawler confuse the two sites. Each site should submit its own list and increase the content difference.
Q: If the robots rules are basically the same, can one global rule be written?A: The rule text can be copied into a single template, but it must be distributed to the root path of each domain and take effect separately. 'Template unified, instance separated' is a safe practice.
Q: What should be configured first after a new site is launched?A: First configure the robots and sitemap of the domain, then connect the active push account of the corresponding domain name, and finally check whether the 301 rule only redirects within the domain.