How to display a custom prompt message during the website shutdown maintenance of AnQi CMS?

Calendar 👁️ 59

During the operation of the website, we sometimes have to temporarily close the website for maintenance due to system upgrades, data optimization, or feature adjustments.How can you clearly and friendlily convey this status to visitors to avoid user confusion or loss, which is particularly important.A safe CMS provides a set of built-in solutions for you to easily customize the prompt information during website maintenance shutdown.

Understand the closed-site mechanism of Anqi CMS.

The shutdown feature of AnQi CMS is designed to be very intuitive and flexible.When you enable the closed site mode, the system will automatically intercept all access requests to the website content and instead display a pre-set prompt page.This means that, no matter which page the visitor tries to access, they will see the exclusive information you have prepared for the maintenance period.This unified entry ensures the accuracy and consistency of information transmission.

Enable shutdown mode and set basic prompts

To put the website into maintenance mode, you first need to log into the Anqi CMS admin interface.In the left navigation bar, find and click "Background Settings", then select "Global Function Settings".

On this page, you will find an option called "Website Status".By default, it is usually "operational". Please switch to "closed".Once you choose "shut down", the website will immediately enter maintenance mode.

Immediately below the "Website Status", a text box for the "Shutdown Tip" will appear.Here, you can enter a brief message that will be displayed to visitors during maintenance.For example: 'The website is under maintenance and is expected to resume normal access in a few hours. Thank you for your patience!'This text will be the default shutdown prompt, suitable for those who seek quick setup and have no special requirements for page style.

Deeply customize the shutdown prompt page

If simple text prompts do not meet your rich needs for brand image or information delivery, Anqi CMS also allows you to deeply customize the entire offline prompt page.This means you can keep the page design consistent with the website style, and even add more detailed information or interactive elements.

The safety CMS defines the prompt page when shutting down as the current template directoryerrors/close.htmlFile. You can edit it online through the "template design" feature in the background, or directly modify the file through tools such as FTP/SSH.

in thiserrors/close.htmlIn the file, you can freely add HTML structure, CSS styles, and even JavaScript effects, just like designing a regular page. For example, you can:

  • Add an eye-catching website logo and brand sloganEnsure that the maintenance page also reflects the brand image.
  • Provide more detailed maintenance reasons and estimated durationReduce user anxiety.
  • Embed social media links or customer service contact informationFor users to get the latest updates or seek help.
  • Design an aesthetically pleasing progress bar or animation effectTo enhance the visual appeal of the page.

To make the prompt information more dynamic and practical, Anqi CMS provides a variety of template tags for you to easily retrieve website configuration information. Inerrors/close.htmlIn the template file, you can use these tags:

  • Display website name: Use.{{ system with name="SiteName" }}.
  • Show website logo: Use.<img src="{% system with name="SiteLogo" %}" alt="{% system with name="SiteName" %}" />.
  • Display the content you entered in the "Offline Notice" text box in the background: Use.{{ system with name="SiteCloseTips" }}Thus, you can quickly change the core prompt without having to edit the template file each time.
  • Display the current time or the expected recovery time.: Combined{% now "2006-01-02 15:04:05" %}Such time formatting tags, you can display the time when the website enters maintenance, and even manually add custom parameters in the "Global Feature Settings" (for example预计恢复时间Then proceed{{ system with name="预计恢复时间" }}to display.
  • Provide contact informationUtilize{{ contact with name="Cellphone" }}or{{ contact with name="Email" }}Tags, directly call the contact information set in the background.

Through these tags, you can build a professional and informative maintenance prompt page, effectively managing user expectations.

Good practices during maintenance

It is crucial to provide clear and considerate prompts when the website is in maintenance mode.First, the information should be concise and clear, directly informing the user of the website maintenance and the expected recovery time.Secondly, maintain brand consistency, even when maintaining pages, the visual style of the website should be followed.If the maintenance time is long, consider providing an alternative information access channel, such as a link to social media updates.It is most important to remember to change the 'website status' back to 'normal operation' in time after maintenance, so that visitors can recover access to the website as soon as possible.

Summary

The shutdown feature of Anqi CMS provides great convenience and flexibility for website maintenance.Whether it is a simple text prompt or a carefully designed customized page, it can help you maintain a professional image during website maintenance, effectively manage user experience, and reduce unnecessary troubles.Make good use of this feature, which will make your website operation smoother and more efficient.


Frequently Asked Questions (FAQ)

Q1: If I haven't customized during the website shutdown,errors/close.htmlwhat will be displayed in the file?A1: If you haven't customizederrors/close.htmlThe file, the system will automatically display the text content you entered in the 'Shutdown Prompt' text box under 'Global Function Settings'.If the text box is also empty, the system will display a default, very brief general shutdown prompt.

Q2: Will enabling the site shutdown feature affect search engine indexing?A2: Short-term site maintenance usually will not have a long-term negative impact on search engine inclusion. To better inform the search engine that this is a temporary maintenance and not a permanent shutdown, it is recommended to use customizederrors/close.htmlReturn through the HTTP response header in the page503 Service UnavailableThe status code should be provided along with the expected recovery time, but this requires more advanced server configuration.The default shutdown feature of AnQi CMS will display a page, but its HTTP status code may still be 200. At this time, a clear page prompt can help search engines understand the temporary status of the website.

Q3: Can you set a timer to turn on or off the closed station mode?A3: Currently, the shutdown mode of the AnQi CMS backend management interface is manually operated.The built-in "Time Factor-Scheduled Publishing Feature" is mainly used for scheduling the publication of content (such as articles), rather than for switching the overall state of the website.Therefore, you need to manually enter the background at the beginning and end of maintenance.

Related articles

How to reference common code snippets (such as headers and footers) in Anqi CMS templates to unify page display?

It is crucial to maintain consistency in the display of web pages during website operations.A unified website appearance can not only enhance brand professionalism but also optimize user experience.AnqiCMS provides a powerful and flexible template mechanism, allowing us to efficiently manage common website elements such as headers and footers, thus avoiding repetitive code writing and ensuring the consistency of the entire site style.The AnqiCMS template system draws on the syntax of the Django template engine, with the core idea being that developers can define reusable code snippets and page skeletons

2025-11-08

How to configure content automatic external link filtering in Anqi CMS and how it affects the display of front-end links?

In website content operation, the management of external links is a vital aspect that cannot be ignored.It not only relates to user experience, but also directly affects the website's search engine optimization (SEO) performance.AnQi CMS knows this and therefore provides a flexible and practical external link handling mechanism to help content operators efficiently manage external links in articles.Where is the AnQi CMS external link configuration? AnQi CMS provides a very convenient function to handle external link issues, and you can easily configure it in the system background.The specific path is: log in to your AnQi CMS backend

2025-11-08

How to set up automatic image compression in Anqi CMS to speed up page loading?

Optimize images, speed up the website: AnqiCMS Automatic Compression Settings Guide Website access speed is one of the key factors in user experience and an important consideration for search engine optimization (SEO).And large images are often the culprit that slows down website loading speed.Fortunately, AnqiCMS, as a fully functional content management system, is built with a series of powerful image optimization features, which help us easily deal with this issue, while keeping the website smooth in providing rich visual content.Today, we will take a detailed look at how to use AnqiCMS

2025-11-08

Does AnQi CMS support the automatic conversion of uploaded images to WebP format for optimized display?

In the era where content is king, the loading speed of website images directly affects user experience and search engine optimization (SEO) performance.Efficient image management and optimization strategies are crucial for any website committed to providing high-quality content services.Many website operators are actively seeking solutions that can automatically optimize images, especially those converted to WebP format.So, for those who are using or considering using AnQiCMS, does this system support automatic conversion of images to WebP format after upload to optimize display?The answer is affirmative

2025-11-08

How to display multi-language switch links and the current language identifier in Anqi CMS?

In AnQi CMS, implementing multi-language switch links and current language identification is a very practical feature that can help your website easily face global users and enhance the internationalization level of your website.Aqicms provides intuitive and powerful template tags, allowing you to flexibly display these elements on the website front end. ### One, understand the multilingual capabilities of Anqicms Anqicms has considered the needs of multilingual sites from the very beginning and provides comprehensive multilingual content management support.This means you can create and manage independent content for different languages in the background, such as articles

2025-11-08

How to automatically add hyperlinks to URLs and email addresses in article content of AnQi CMS?

In content management and website operations, automatically converting URLs and email addresses in the text to clickable hyperlinks can greatly enhance user experience and optimize the internal link structure of the website to some extent.For AnQiCMS users, implementing this feature is not through simple backend settings, but through the specific "filter" provided by its powerful template engine.This design approach gives website owners great flexibility and control, allowing them to finely manage the generation of links according to the needs of different content areas.

2025-11-08

How to truncate a long string and display an ellipsis in AnQi CMS templates?

The flexibility of content display is crucial in the template making process of Anqi CMS.When it is necessary to display a long text within a limited space, such as an article abstract, product description, or brief introduction, truncating the strings with an ellipsis is a common optimization method. It can effectively maintain the neat layout of the page and guide users to click and view the full content.AnQi CMS is developed based on Go language, its template engine syntax is similar to Django, and it provides powerful filter (filters) functions that can easily meet this requirement.### Skillfully Utilize Filters

2025-11-08

How can AnQi CMS templates inherit parent templates and rewrite specific block content to customize display?

In Anqi CMS, the template system provides a powerful and flexible mechanism that allows users to efficiently customize the layout and content display of the website.Among them, "inheriting the parent template and rewriting specific block content" is a key function to achieve personalized design and maintain consistency with the overall style of the website. ### Core Concept: Say goodbye to repetition, embrace inheritance Imagine that the header, footer, sidebar, and other elements of a website are fixed and unchanged on almost every page. If there is no template inheritance mechanism, we may need to repeat this common code in each page template, which increases the difficulty of maintenance

2025-11-08