In website operation, we often encounter situations where we need to maintain, upgrade, or even temporarily close the website.In this 'closed site' state, many operators will have doubts: Will the structured data of the JSON-LD we meticulously configured for SEO still be output normally?How can it be handled to minimize the impact on search engine optimization (SEO) as much as possible?As an experienced website operation expert, I will combine the characteristics of AnQiCMS (AnQiCMS) to deeply analyze this issue for everyone.

Deeply understand the "shutdown" mechanism of Anqi CMS

Firstly, we need to clarify how Anqi CMS implements the "shutdown" function. According to the design of Anqi CMS, it provides a convenient "shutdown feature" that allows operators to set the website status to closed in the background and customize the "shutdown prompt" information (see thehelp-setting-system.mdThe "website status" and "shutdown prompt".

After the website enters the shutdown state, when users visit any page, the system will display the shutdown prompt page you have preset, usually/template/errors/close.htmlThis template file (referencedesign-director.md)。The key point is that the shutdown function of Anqi CMS is not to stop the entire web service or return an error code, but ratherat the application levelThis replaces the normal content output. This means that the server itself is still running, and for search engine crawlers, it will usually capture an HTTP status code of200 OKThe page, but the content of this page has become a closed station prompt.

Json-LD: The value of structured data and the integration with Anqi CMS

Json-LD is a lightweight structured data format that plays a crucial role in search engines understanding page content and displaying richer search results (such as star ratings, article thumbnails, etc.). In Anqi CMS, the integration of Json-LD usually has two methods:

  1. Auto-generated:The AnQi CMS may automatically generate general Json-LD data based on the articles, products, pages, and other content you publish, such asArticle/Productand other types.
  2. Custom integration:The operator can also manually add in the template{% jsonLd %}Tags (seetag-jsonLd.md) to customize or supplement Json-LD data to meet specific business requirements.

These Json-LD data are usually embedded in the page<head>or<body>within the tag, existing in the form of JavaScript script fragments, intended to describe the current page displayedspecific content.

analysis of Json-LD output logic under 'closed station' state

Understood the shutdown mechanism of AnQi CMS and the integration method of Json-LD, we can then deduce the output logic of Json-LD in the shutdown state:

  • The Json-LD output will stop on the regular content page:When the website is in a shutdown state, Anqicms no longer renders the usual article detail pages, product list pages, and other dynamic content pages. Instead, it uses a unifiederrors/close.htmlThe site is closed. Therefore, scripts and tags that depend on specific articles, products, and other dynamic content to generate Json-LD data will not be executed, and the corresponding Json-LD data will not be output naturally.
  • Json-LD of the shutdown prompt page:Unless youspecificallyInerrors/close.htmlthis shutdown template file itself or the common template it inherits (such asbase.html) Hard-coded Json-LD data, otherwise the closed station page will not output any Json-LD related to the original website content by default. Even if it exists, it is usually a description of the overall information of the website (WebSiteorOrganizationGeneral data, not specific to content.
  • The perspective of search engines:The search engine's crawler will visit your website and receive the HTTP 200 OK status code as well as the content of the shutdown notice page.In most cases, due to the different structure and data of the closed station prompt page and the original content page, search engines will not extract any meaningful structured data from it, nor will they associate it with the previous Json-LD historical data of your website.

In short, under the default closed-site state of Anqi CMS, Json-LD generated based on specific content will not output normally.

How to reasonably handle the Json-LD under closed station status?

Given the working principle of the Anqi CMS shutdown function, we propose the following handling suggestions to minimize the potential impact on SEO:

  1. Short-term maintenance (several hours to several days):

    • Accept the status quo:For very short-term maintenance, the temporary absence of Json-LD usually has little impact.The search engine may notice the content change, but since it is a 200 OK status, it will not immediately remove the page from the index.After the website is restored to normal, Json-LD will reappear, and search engines will rescan and update.
    • Checkerrors/close.html:Ensure your:errors/close.htmlThe template does not output any Json-LD data that may cause misunderstandings. If it contains Json-LD, make sure it is only describing general information about the website (such asWebSite),and there is no structured data associated with specific content.
  2. Long-term maintenance or business adjustment (from a few days to several weeks, even longer):

    • Important reminder: The shutdown function of AnQi CMS returns 200 OK by default.This means that the search engine will consider the closed site hint page as new and normal content.If this continues, it may lead to the replacement of the original high-quality pages with new low-quality closed station prompt pages, which in turn may affect the SEO ranking.
    • Recommended strategy: Use the HTTP 503 Service Unavailable status code.In an ideal case, you should make the server return a 503 status code.503 Clearly informs the search engine: The website is temporarily unavailable, please try again later, and it will not affect the existing ranking.Although AnQi CMS does not provide 503 directly with its own shutdown function, you can configure it in combination with a reverse proxy server (such as Nginx, Apache).
      • Nginx/Apache configuration:If your security CMS is reverse proxied through Nginx or Apache (such asapache.mdanddocker-1panel.mdAs shown), you can configure it at the proxy layer. When the website URL matches the closed page, it returns an HTTP 503 status code. This requires a certain understanding of server configuration.
      • Customizederrors/close.htmlAdd 503 information:Although the HTTP status code is still 200, you can add in:errors/close.htmlof<head>to include<meta http-equiv="refresh" content="3600;url=http://www.yoursite.com/coming-soon.html">Such a refresh tag, or inform users and search engines that the website is temporarily offline via JavaScript, but this is not a standard 503 alternative solution.
    • Adjust Robots.txt (use with caution):If it is a long-term shutdown with an uncertain recovery time, consider using the "Robots Management" in the Anqi CMS backend (seehelp-index.md) to set the entire site toDisallow: /This could cause the search engine to completely stop crawling and may take a long time to be re-indexed after recovery. It is not recommended to use it lightly unless absolutely necessary.
    • 301 Redirect to temporary page:If there is a clear temporary page (such as “We are upgrading, please visit the new site”), it can be accessed through the “301 redirect management” of Anq CMS (seeAnQiCMS 项目优势.mdIn the "Static and 301 Redirect Management" orchangelog.mdSupport for adding 301 redirect links will redirect all traffic to a dedicated temporary page, the temporary page