How to set up the website to display specific notification information on the front end when it is in "closed site" status?

Calendar 👁️ 76

The website will always encounter times when it needs to be maintained, upgraded, or temporarily adjusted.At this time, it is crucial for users to see a friendly and informative prompt instead of a cold error page, which is very important for the website's image and user experience.Fortunately, AnQiCMS provides a very convenient and flexible "shutdown" feature, allowing you to easily manage the maintenance status of your website and display customized notification information to front-end visitors.

Next, let's take a look at how to set the "shutdown" status of the website in the AnQiCMS backend, as well as how to display specific notification information on the front end.

One, enable the website "shutdown" mode

Firstly, we need to enter the AnQiCMS backend management interface.In the left menu bar, you will find an option for "background settings".Click to enter, in the "Global Function Settings" area of the page, you will see a configuration item named "Website Status".

When you need to put the website into maintenance mode, just switch this option from the default 'Normal' to 'Offline' status, and then click Save Settings.The operation is very intuitive, after completion, the website front-end will immediately display a default shutdown notice, letting visitors know that the website is currently under maintenance.

Two, set simple shutdown notification information

After switching to the shutdown status, you may want to display some more specific information, such as what the website is currently doing, when it is expected to resume access, or provide an emergency contact number.

On the "Global Function Settings" page, next to the "Website Status" option at the bottom, there is usually a text box for the "Shutdown Tip".HereThis text will be directly displayed on the default closure page of the website's front-end.

This method is suitable for quickly publishing temporary notifications, the content is mainly plain text, simple and clear.

3. Customize a dedicated closed station prompt page.

If you are not satisfied with the default plain text prompt and want to design a more brand-specific, content-rich closed station page, AnQiCMS also provides a perfect solution. The system is located in the template directory (usually located in/template/您的模板名称/A folder contains a file namederrors/close.html. This file is specifically used to display to visitors when the website is in a closed station status.

You can edit this like a normal page templateclose.htmlModify the file. Whether it is through the "template design" feature in the background for online editing, or through FTP/SSH tools to directly modify the file on the server, it can be achieved.

in thisclose.htmlIn the file, you have a high degree of freedom. You can write custom HTML structures, add exclusive CSS styles, even embed your website Logo, brand images, or a countdown timer to display the recovery time.A well-designed maintenance page can not only soothe user emotions but also maintain the brand image during maintenance, avoiding user loss.

It is worth mentioning that even custom onesclose.htmlPage, you can still use the AnQiCMS template tags in it. For example, if you filled in 'shutdown prompt' in theclose.htmlpass through{% system with name="SiteCloseTips" %}Label it to call it out. This way, you can perfectly combine the dynamic prompts in the background settings with the fixed elements you have designed on the page, making the notification information more flexible and variable.

Four, Practice and Tips

After you have completed the setup and modification of the closure page, it is recommended that you must test it.Try accessing your website from different browsers or incognito mode to ensure that the site closure notifications display as expected and that the page layout and information are all correct.

After all the maintenance work is completed, don't forget to go back to the 'Global Function Settings' page on the AnQiCMS backend, switch the 'Website Status' back to 'Normal', and restore your website to open for public access.Provide clear and friendly exit notifications, which is an important aspect for improving user experience and maintaining brand image.


Frequently Asked Questions (FAQ)

  1. Does it have an impact on search engine inclusion when the website is in a 'closed site' status?In most cases, AnQiCMS's shutdown feature will display a custom page on the front end, but the server will return a 200 OK status code, which means the search engine may still be able to crawl your shutdown page.For short-term maintenance (a few hours to a day), the impact is usually not significant.If your website needs to be down for a long time (days even longer), it is recommended to consider a more professional SEO maintenance strategy, such as configuring the server to return a 503 Service Unavailable status code, and coordinatingRetry-AfterThe response header clearly informs the search engine that this is temporarily unavailable, not that the content has disappeared or permanently closed, but the AnQiCMS backend shutdown feature does not provide a direct option to set the 503 status code by default, and it needs to be configured through the reverse proxy layer of the server (such as Nginx/Apache).

  2. Can I add a form or contact information to the custom closed station page?Absolutely. Becauseerrors/close.htmlIs a standard HTML template file, where you can add any HTML element, including contact forms (such as using the AnQiCMS provided message form tags), social media links, or phone numbers, etc.This is very useful for websites that need to keep in touch with users during maintenance.

  3. If I modifyerrors/close.htmlthe file, what should I do if it does not take effect on the front end immediately?If the front-end does not take effect immediately after modifying the template file, it is likely due to the AnQiCMS cache mechanism or the cache of your browser itself. You can try the following operations:

    • Clear AnQiCMS backend cache:In the left menu of AnQiCMS backend management interface, find the 'Update Cache' feature, click to execute the cache clearing operation.
    • Force a browser refresh:In the browser, try to useCtrl + F5(Windows) orCmd + Shift + R(Mac) to force refresh the page to clear the browser cache.
    • Check the file path:Ensureerrors/close.htmlThe file is indeed located in/template/您的模板名称/errors/The directory and the filename are spelled correctly.

Related articles

How to batch regenerate all content thumbnails to fit the new frontend display size?

When the visual style of a website needs a complete overhaul, or to adapt to the ever-changing size of device displays, we often need to adjust the size of image thumbnails.AnQiCMS (AnQiCMS) fully understands this and provides a convenient and efficient solution for such needs.How to batch regenerate thumbnails for all content in response to adjustments in front-end display dimensions to ensure the aesthetic beauty and loading efficiency of the website, which is a concern for many operators.Why do you need to regenerate the thumbnail? Thumbnails play a crucial role in website operations

2025-11-08

How to implement automatic conversion of uploaded images to WebP format to optimize front-end loading and display speed?

In today's content operation, website loading speed is crucial for user experience and search engine rankings.Images are an important part of web content, and their loading performance is often a key factor affecting overall speed.AnQiCMS (AnQiCMS) is well aware of this and provides a convenient image optimization feature, especially converting images uploaded to WebP format automatically, which can significantly improve the display speed of the website's front-end.### WebP format: A speed booster for front-end loading WebP is an image format developed by Google

2025-11-08

How to remove spaces or specified characters from the beginning, end, or all positions of a string and then display it?

In website content operation, we often encounter situations where strings contain unnecessary spaces or specific characters.These seemingly minor issues may affect the display aesthetics, SEO effects, and user experience of the content.For example, a product title may display differently on different devices due to leading and trailing spaces, or a keyword list may be surrounded by additional symbols, affecting search engine recognition.

2025-11-08

How to calculate the number of times a certain keyword appears in a string or array and display it?

In the daily work of content operation, we often need to conduct in-depth analysis of website content, one of the common requirements is to understand the frequency of a keyword appearing in a specific string or content block.This is crucial for SEO optimization and also helps us evaluate the relevance and quality of the content.AnQi CMS as an efficient enterprise-level content management system provides us with very convenient built-in tools to solve this problem, that is the powerful `count` filter.

2025-11-08

How to display recommended attributes (such as headlines, recommendations, sliders) in article lists or detail pages?

In AnQi CMS, in order to make your website content more attractive and able to flexibly display articles of different importance levels or display forms, the system provides a "recommended attribute" feature.By cleverly utilizing these properties, you can easily add "headlinesThis guide will take you in-depth to understand how to set and use these recommended properties in AnQiCMS, making your website content management more convenient.

2025-11-08

How to display a custom Banner image group on the category page or single page?

It is crucial that visual content is attractive in website operation.Especially for category pages and standalone single pages, displaying a set of carefully designed banner images can effectively attract visitors' attention, strengthen the brand image, and convey specific information.AnQiCMS provides a straightforward and flexible mechanism that allows you to easily configure and display custom Banner image groups on these key pages.

2025-11-08

How to display the view count of articles in the article list or detail page?

In website operation, the number of article views is a very intuitive and important indicator, which not only reflects the popularity of the content but also provides data support for the optimization of subsequent content strategies.For websites built using AnQiCMS, displaying the number of views on article lists or detail pages is a relatively simple operation. With the powerful template tag features provided by AnQiCMS, we can easily achieve this requirement.Understanding the "Page Views" feature of AnQiCMS AnQiCMS is built with powerful traffic statistics functionality

2025-11-08

How to remove empty lines generated by conditional judgment or loop tags in the template to optimize the display cleanliness of the page source code?

In website operation, we all hope that the website is not only powerful in function, rich in content, but also the source code behind it should be neat and orderly.However, when developing with a flexible template system like AnQiCMS, you may sometimes find that the generated HTML source code contains many blank lines, which are mainly caused by conditional judgment or loop tags in the template.Although these blank lines usually do not have a substantial impact on the functionality of the website, they do indeed reduce the readability of the source code, and bring inconvenience to subsequent maintenance and debugging.

2025-11-08