sitemap configuration
# sitemap configuration
Neuxnet is now open for in-program search, and developers can configure whether indexing is allowed on their Mini App pages by configuring 'sitemap.json'. Neuxnet indexes the page content of the Mini App in the form of a crawler. When the user's search term triggers the index, the MiniApp's page may appear in the search results.
# 1. Sitemap configuration
The 'sitemap.json' file in the root directory of the MiniApp is used to configure whether the Mini App and its pages are allowed to be indexed by Neuxnet.
# Example 1
{
"rules":[{
"action": "allow",
"page": "*"
}]
}
All pages are indexed by Neuxnet (default)
# Example 2
{
"rules":[{
"action": "disallow",
"page": "path/to/page"
}]
}
The configuration 'path/to/page' page is not indexed, and the remaining pages are allowed to be indexed
# Example 3
{
"rules":[{
"action": "allow",
"page": "path/to/page"
}, {
"action": "disallow",
"page": "*"
}]
}
Configure 'path/to/page' pages to be indexed, and the rest of the pages are not indexed
# 2. Special situation description
- Without 'sitemap.json', all pages can be indexed by default;
- '{"action": "allow", "page": "*"}' is the default rule with the lowest priority, and all those that do not explicitly indicate ''disallow' are indexed by default;
- The content of the 'sitemap.json' file is '5120' 'UTF8' characters;
- When there are pages that are not easy to be included by the platform, developers can also use 'sitemap.json' to declare processing.
Last update: 2022/08/16, 21:24:25