How to ensure that the website displays a custom prompt to users when it is in "shutdown" status?

Calendar 👁️ 66

In website operations, we sometimes encounter situations where we need to temporarily close the website, such as for system maintenance, major upgrades, data migration, or handling unexpected security incidents.For any reason, directly allowing users to access an empty page or an error page will severely affect user experience and even damage the brand image.At this time, it is particularly important to be able to clearly display a friendly prompt to visitors.

AnQiCMS (AnQiCMS) is well-versed in this, providing us with a very convenient and flexible website shutdown prompt solution, allowing us to easily deal with such situations.

First, when the website is closed, it is the first step to inform clearly

When we decide to temporarily close the website, the most basic need is to make sure that all visitors can see a clear notification.The AnQi CMS provides a direct "website status" toggle function and a content editing box for "shutdown tips" in the background settings.

  1. Switch the website status:You can find it in the Anqi CMS backend“Background Settings”Under the menuGlobal function settings. On this page, you will see a name called“Website Status”The option. By switching it from “on” to“off”Your website will immediately enter closed mode. This means that all users visiting your website will only see the shutdown prompt you have set.

  2. Set the shutdown prompt:Immediately below the 'Website Status' option, there is usually one"Shutdown Prompt"The text input box. This is where you write your message to visitors. You can enter some brief but important information according to your actual situation, such as:

    • The website is undergoing system upgrade, maintenance time expected.
    • Thank you for your patience, the service will be restored soon.
    • If you need urgent assistance, please contact our customer service (and provide contact information).

Through these two simple settings, even if your website is working "behind the scenes", visitors will receive clear feedback to avoid confusion and loss.

Chapter 2: Personalized Customization: Creating a Professional Shutdown Page

If displaying a piece of text is not enough to meet your needs, for example, if you want the closed station page to maintain the brand style or include more complex layouts and images, Anqi CMS also provides powerful template customization capabilities. The system will default to searching for a page namederrors/close.htmlThe template file to display the closed page. This means you can completely control the design and content of this page.

  1. Create or modifyerrors/close.htmlTemplate File:In your Anqi CMS template directory, you can find (or create)errors/close.htmlThis file. This file is a page template specifically designed for displaying to users in the offline state.You can design the page like a normal page here, adding HTML structure, CSS style, even JavaScript scripts, to ensure that the closed page also conforms to your brand style.

  2. Reference the closed site prompt content in the template:Even if you have customizederrors/close.htmlTemplate, you can still flexibly refer to the content in the 'Offline Tip' input box under the 'Global Function Settings' on the background. By using the system tags of Anqi CMS, you can dynamically display the text entered on the background in your customized page:

    {# 在 errors/close.html 模板中,您可以使用以下代码获取后台设置的闭站提示文本 #}
    <div>
        <p>亲爱的访客:</p>
        <p>{% system with name="SiteCloseTips" %}</p>
        <p>感谢您的理解与支持!</p>
    </div>
    

    This way, you can easily modify the prompt text through the backend, and also flexibly control the overall layout and visual effects of the page through the template file, achieving perfect integration of dynamic content updates and design.

Step 3: Operation Suggestions and Precautions

  • Plan in advance:Be sure to prepare the shutdown prompt content and customized page in advance before deciding to close the station, to avoid last-minute preparation.
  • Information Transparency:In the shutdown prompt, try to inform the user of the reason for the shutdown, the expected recovery time, and possible alternatives (such as social media accounts, customer service phone numbers, etc.), so that the user feels respected.
  • Test acceptance:Before the formal shutdown, it is recommended to switch the website status in the development or test environment first, check if the shutdown page can be displayed normally, and whether the content is accurate and error-free.
  • Search engine friendly:For short-term closures (a few hours to a day), search engines usually understand.The shutdown feature of AnQi CMS has taken this into consideration, it will return the corresponding status code (such as 503 Service Unavailable) to search engines, informing them that this is only a temporary situation and should not affect normal inclusion and ranking.If the site is closed for a long time, it is recommended to pay more attention to the inclusion of the website after recovery.

The shutdown feature of AnQi CMS, from simple text prompts to in-depth template customization, provides a multi-level solution that helps you maintain a professional image during website maintenance and maintain trust with users.


Frequently Asked Questions (FAQ)

1. Why is the original HTML code displayed on the front end instead of the rendered effect, as I entered it in the "site closure prompt" on the back end?The “Shutdown Prompt” input box is mainly used to enter plain text information. If you want to display complex HTML structures, images, or styles on the shutdown page, it is recommended that you modify or createerrors/close.htmlImplement a template file. In this template, you can freely write HTML code, and through{% system with name="SiteCloseTips" %}the tag to bring the background input text prompt content into the page.

2. If I have not createderrors/close.htmlWhat will be displayed when the website is closed?If you have not created a customerrors/close.htmlTemplate file, AnQi CMS usually has a default system shutdown page.This page will directly display the content you entered in the "Shut Down Prompt" field under the "Global Function Settings" in the background, but its style and layout may be system preset and relatively simple.To better control the user experience, it is strongly recommended that you customizeerrors/close.htmlfile.

3. Will the closure of the website affect SEO?For short-term (such as a few hours to a day) maintenance shutdowns, they usually do not have a significant impact on the website's SEO.The AnQi CMS shutdown mechanism will return a "503 Service Unavailable" status code to search engines on the technical level, indicating that the service is temporarily unavailable, so that search engines know that it is not a permanent shutdown.The search engine will recrawl your website after a period of time.If the downtime is long, search engines may reduce the crawling frequency, but once the site is restored, it usually reindexes quickly.The key is to provide clear prompt information when the site is closed and ensure that the content and services are normal after the site is restored.

Related articles

How to call and display the independent domain of the website backend configured in the template?

In the flexible content management system of AnQiCMS, site operators often need to display some key background configuration information in the website template according to business needs.Among the settings such as 'Background Independent Domain', it not only concerns the security of the system, but may also need to be displayed on the website front-end in certain scenarios, such as being used as a quick access entry for internal personnel, or for information explanation on specific pages. Today, let's delve into how to cleverly call and display the independent domain you have configured in the AnQiCMS template.###

2025-11-07

How to display the AnQiCMS built-in system language package switch feature on the front page?

AnQi CMS provides a flexible mechanism to allow your website to better serve users in different languages around the world.When you want to implement language switching on the front page, the tags and backend configuration built into AnQiCMS can well meet this need.Understanding AnQiCMS language package mechanism First, we need to clarify the concept of "language package" in AnQiCMS.The system language package built into AnQiCMS is mainly responsible for switching the website backend interface and the language of the**system built-in prompts, labels, etc.**on the front-end page.

2025-11-07

How to display the unique content and images of a custom page (single page)?

In website operation, we often need to create some unique content and personalized page layouts, such as 'About Us', 'Contact Information', or a specific event detail page.AnQiCMS (AnQiCMS) has provided us with a powerful custom page (single page) feature, which not only allows us to easily manage the text content of these pages, but also flexibly display their exclusive images and customized layouts.How to specifically operate, so that the custom page has its own unique content and image display method?

2025-11-07

How to batch modify keywords in the article content in the background and synchronize them to the front display?

In website content operation, the accuracy and timeliness of keywords are crucial.With market changes or SEO strategy adjustments, we often need to make batch modifications to the keywords of a large number of articles on the website.If done manually, it will undoubtedly consume a lot of time and effort.幸运的是,AnQiCMS(AnQiCMS)提供了高效的批量关键词替换功能,让这一process变得得心应手,并能确保修改后的内容无缝同步到前台显示。

2025-11-07

How to display the number of comments for each article on the article list page?

In website operation, the article list page is not only the entrance of content, but also a window for users to understand the activity level of the website.When users see that every article is accompanied by a comment count, this not only effectively enhances the interactivity and attractiveness of the article, but also brings positive social proof to the website, encouraging more readers to participate in discussions.For users who use AnQiCMS, displaying the number of comments for each article on the article list page is a very direct and practical feature.

2025-11-07

How to use the `pagination` tag to build standard pagination navigation in the template?

When the content of a website becomes richer, a clear and efficient pagination navigation system is crucial for improving user experience.The AnQiCMS template system provides a powerful `pagination` tag that allows us to easily build standard, beautiful pagination navigation.Next, we will delve deeper into how to use this tag in templates.

2025-11-07

How to display the custom parameter list in the article content on the front page?

AnQiCMS as an efficient and customizable content management system provides powerful content model features, allowing us to add various custom fields to articles according to different business needs.These custom parameters not only make the article content more rich and structured, but also allow for personalized display on the front page, greatly enhancing the flexibility and user experience of the website.Today, let's delve into how to flexibly display these custom parameter lists in the AnQiCMS front page.

2025-11-07

How to truncate the title or abstract of an article and display it with an ellipsis?

In website content operation, titles and summaries are important elements to attract visitors to click and learn more details.Especially on list pages, recommendation positions, or the homepage, the limited space requires us to refine and cut these contents.To maintain the neatness and aesthetics of the page while fully conveying the core information, it is a common optimization strategy to truncate overly long article titles or summaries and end them with an ellipsis "..."}AnQiCMS (AnQi CMS) provided us with flexible and powerful tools to meet this requirement.

2025-11-07