In the operation of the website, we often encounter situations where we need to maintain, upgrade, or even temporarily shut down the website.In this 'closed station' state, many operators may have doubts: Will the JSON-LD structured data we have carefully 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 operations expert, I will combine the characteristics of AnQiCMS (AnQiCMS) to deeply analyze this issue for you.

Deeply understand the 'shutdown' mechanism of Anqi CMS

Firstly, we need to clarify how the Anqi CMS implements the 'shutdown' feature. 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 (seehelp-setting-system.mdThe “Website Status” and “Shutdown Notice”.)

After the website enters shutdown status, when users visit any page, the system will uniformly display the shutdown notice page you have preset, which is usually/template/errors/close.htmlThis template file (reference)design-director.md). The key point here is that the shutdown feature of Anqi CMS does not stop the entire web service or return an error code, but ratherat the application levelThis has replaced the normal content output. This means that the server itself is still running, and for search engine crawlers, it usually captures 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 secure CMS

As a lightweight structured data format, Json-LD plays a crucial role in helping search engines understand page content and display 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 Aanqi CMS may automatically generate generic Json-LD data in the corresponding template based on the articles, products, pages, and other content you publish,Article/Productand other types.
  2. Custom Integration:Operators can also manually add in the template{% jsonLd %}Tags (seetag-jsonLd.md) to customize or supplement Json-LD data to meet specific business needs.

These Json-LD data are usually embedded in the page<head>or<body>inside the tags, existing in the form of JavaScript script fragments, aiming to describe the content displayed on the current pageSpecific 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 under shutdown state:

  • The Json-LD output on the standard content page will stop:When the website is in the closed station state, the CMS does not render the conventional article detail pages, product list pages, and other dynamic content pages. Instead, it displays a unifiederrors/close.htmlStation closure notice page.Therefore, scripts and tags that rely on specific articles, products, and other dynamic content to generate Json-LD data will not be executed, and the corresponding Json-LD data will naturally not be output.
  • Json-LD on shutdown prompt page:unless youspecificallyInerrors/close.htmlthis shutdown template file itself or the public template it inherits (such asbase.htmlIn the code, Json-LD data is hardcoded; otherwise, the closed-site page will not output any Json-LD related to the original website content by default. If it exists, it is usually a description of the overall information of the website (WebSiteorOrganizationThe general data of the parenthesis, not specific to content.
  • The perspective of the search engine:The web crawler of the search engine will visit your website and receive an HTTP 200 OK status code along with the content of the closed site prompt page.In most cases, since the closed station prompt page is completely different in structure and data from 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 be output normally.

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

Considering the working principle of the Anqing CMS shutdown feature, we propose the following suggestions for handling to minimize the potential impact on SEO as much as possible:

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

    • Accept the present:For very short-term maintenance, the temporary absence of Json-LD usually has little impact.Search engines may notice the content change, but since it is a 200 OK status, the page will not be immediately removed from the index.The Json-LD will reappear after the website is restored, and search engines will re-crawl and update again.
    • Checkerrors/close.html:Ensure your:errors/close.htmlThe template does not output any Json-LD data that could cause misunderstanding. If it contains Json-LD, please ensure that it only describes general information about the website (such asWebSiteAnd there is no structured data associated with specific content.
  2. Long-term maintenance or business adjustment (from several days to several weeks, even longer):

    • Important reminder: The shutdown feature of Anqi CMS returns 200 OK by default.This means that the search engine will consider the closed site notice page as a new, normal page content.If this continues, it may lead to the replacement of the original high-quality pages with new low-quality dead-end prompt pages, which in turn may affect the SEO ranking.
    • Recommended strategy: Use the HTTP 503 Service Unavailable status code.Under ideal circumstances, you should have the server return a 503 status code.503 clearly informs search engines that the website is temporarily unavailable, please try again later, and it will not affect the existing rankings.Although the Anqi CMS does not directly provide a 503, you can configure it in combination with a reverse proxy server (such as Nginx, Apache).
      • Nginx/Apache configuration:If your security CMS is configured with reverse proxy via 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, return an HTTP 503 status code. This requires a certain understanding of server configuration.
      • Customizederrors/close.htmlAnd add 503 yuan of information:Although the HTTP status code is still 200, you can add it inerrors/close.htmlof<head>to add<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 through 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' feature on the Anqi CMS backend (see)help-index.md) to set the entire siteDisallow: /This will cause the search engine to completely stop crawling and may take a relatively long time to be re-indexed after recovery. It is not recommended to use it lightly unless there is no alternative.
    • 301 Redirect to temporary page: If there is a clear temporary page (such as 'We are upgrading, please visit the new site'), it is possible to use the '301 Redirect Management' of Anqi CMS (seeAnQiCMS 项目优势.mdof the "Static and 301 Redirect Management" orchangelog.mdsupport for adding 301 redirect links) Redirect all traffic to a dedicated temporary page,