The website is closed, will Json-LD still output normally or how should it be handled?

Calendar 👁️ 90

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

Related articles

How to ensure the correct setting of the `@type` attribute for different page types when customizing Json-LD?

As an experienced website operations expert, I fully understand the importance of structured data (Structured Data) in modern search engine optimization (SEO).It is like a 'resume' of your website content, directly telling search engines what your page is about and what key information it contains.While Json-LD is a recommended structured data format, the correct setting of its `@type` attribute is crucial to ensure that search engines can accurately understand the core content of your page.Today, let's delve deeply into AnQiCMS (AnQiCMS)

2025-11-06

How to use the `archiveParams` tag to retrieve custom fields and include them in Json-LD?

As an experienced website operation expert, I am well aware of the importance of structured data in today's search engine optimization.Make good use of structured data, not only can it help search engines better understand your content, but also helps to get richer display opportunities in search results.AnQiCMS (AnQiCMS) is a powerful and flexible content management system that provides excellent support in this regard.

2025-11-06

Can the `Json-LD` tag be used to generate structured data for a single page (`pageDetail`)?

As an experienced website operations expert, I am well aware of the crucial role of structured data in improving a website's search engine performance.AnQiCMS (AnQiCMS) was designed with a strong emphasis on SEO-friendliness, providing a wide range of space for us to deeply optimize website content with its flexible template system and tag mechanism.Today, let's delve into a topic that concerns everyone: 'Can Json-LD tags be used to generate structured data for single-page (pageDetail) generation?'}]

2025-11-06

How to ensure that the data is up-to-date when customizing Json-LD and avoid cache issues?

In website operation, Json-LD is a powerful structured data format that is crucial for enhancing the search engine's understanding of website content and increasing the display opportunities of the website in search results (such as rich media abstracts).AnQiCMS (AnQiCMS) takes advantage of its flexible template engine and good support for custom features, making it easy to integrate and manage Json-LD.You can directly use the `{% Ld %}` tag in the template to embed customized Json-LD code, thereby accurately describing the content of your page to search engines

2025-11-06

Does Json-LD automatically add `itemprop` and other microdata tags, or only support JSON-LD?

As an experienced website operations expert, I am happy to give you a detailed explanation of AnQiCMS's support strategy for structured data, especially JSON-LD and traditional microdata tags.In today's Search Engine Optimization (SEO) environment, structured data plays a crucial role, helping search engines to accurately understand your web page content, thereby improving the visibility and display format of your website in search results.### The structured data support of AnQi CMS: Deep analysis of JSON-LD and microdata tags In content operation practice

2025-11-06

How to debug Json-LD output in AnQiCMS template?

In the operation practice of AnQiCMS (AnQiCMS), structured data (usually presented in the form of Json-LD) plays a crucial role.It can help search engines better understand the content of the page, thus potentially obtaining rich search results (Rich Snippets), significantly improving the visibility and click-through rate of the website.

2025-11-06

Can Json-LD directly reference the image resource address of AnQiCMS, such as the thumbnail URL?

## Empowering Structured Data: Direct Reference Strategy for Anqi CMS Image Resources in Json-LD As an experienced website operations expert, I am well aware of the importance of structured data (Structured Data) in today's search engine optimization (SEO) field, which is self-evident.It not only helps search engines better understand page content, but is also the key to obtaining rich search results (Rich Snippets).While Json-LD is the mainstream implementation of structured data, its accuracy and completeness directly affect the exposure and click-through rate of a website

2025-11-06

Can AnQiCMS's Json-LD combine `nextArchive` and `prevArchive` tags to generate structured data for related articles?

As an experienced website operations expert, I know that structured data plays a crucial role in modern search engine optimization.It can help search engines understand web content more accurately, thus giving them the opportunity to display richer search results (Rich Snippets), attracting more users to click.AnQiCMS (AnQiCMS) is an enterprise-level content management system that attaches great importance to SEO and naturally provides strong support and flexible customization space in this regard.

2025-11-06