How to display custom prompt information during the maintenance closure of the AnQi CMS website?

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

Understand the closure mechanism of AnQi CMS

The shutdown function of Anqi CMS is designed to be very intuitive and flexible.When you enable the site-blocking 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 delivery.

Enable closure mode and set basic prompts

To put the website into maintenance mode, you first need to enter the admin interface of the AnQi CMS.In the left navigation bar, find and click 'Backend Settings', then select 'Global Function Settings'.

Immediately below the 'Website Status', a text box for 'Shutdown Notice' will appear.Here, you can enter a short piece of text as the first message seen by visitors during maintenance.For example: "The website is under maintenance and is expected to be back to normal within a few hours. Thank you for your patience!"}]This text will serve as the default shutdown prompt, suitable for users who seek a quick setup and have no special requirements for page style.

Customized shutdown 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 closed station prompt page.This means you can maintain a consistent page design with the website style, and even add more detailed information or interactive elements.

The Anqi CMS defines the shutdown prompt page as the current template directory.errors/close.htmlFile. You can edit it online through the "Template Design" feature in the background, or directly modify the file using 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 expected durationto reduce 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 easy retrieval of website configuration information.errors/close.htmlIn the template file, you can use these tags:

  • Display the website name: Use{{ system with name="SiteName" }}.
  • Display the website logo: Use<img src="{% system with name="SiteLogo" %}" alt="{% system with name="SiteName" %}" />.
  • Display the content you input in the "Offline Notice" text box on the backend: 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 estimated recovery time.: combined{% now "2006-01-02 15:04:05" %}Such time format tags, you can display the website maintenance time, and even manually add custom parameters (such as预计恢复时间), then through{{ system with name="预计恢复时间" }}Show【en】.
  • Provide contact information【en】.: Utilizing{{ contact with name="Cellphone" }}or{{ contact with name="Email" }}Tags such as these can directly retrieve the contact information set in the background【en】.

By these tags, you can create a professional and informative maintenance tip page, effectively managing user expectations.

Best practices during maintenance

It is crucial to provide clear and considerate prompts when the website is in maintenance mode.Firstly, the information should be concise and clear, directly informing the user that the website is under maintenance and the expected time for recovery.Secondly, maintain brand consistency, even when maintaining the page, the visual style of the website should be followed.If the maintenance time is long, consider providing an alternative information acquisition channel, such as a link to social media updates.It is most important to remember to reset the "website status" to "normal operation" in time after maintenance, so that visitors can regain 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 simple text prompts or meticulously designed customized pages, both can help you maintain a professional image during website maintenance, effectively manage user experience, and reduce unnecessary trouble.Reasonably utilizing this feature will make your website operation smoother and more efficient.


Common Questions (FAQ)

Q1: When the website is closed, if I haven't customizederrors/close.htmlthe file, what will be displayed?A1: If you haven't customizederrors/close.htmlThe system will automatically display the text content you entered in the 'Shut Down 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 the search engine indexing?An A2: Short-term closure maintenance usually will not have a long-term negative impact on search engine inclusion. To better inform search engines that this is temporary maintenance and not a permanent shutdown, it is recommended to customize theerrors/close.htmlPage, returned through HTTP response headers503 Service UnavailableStatus code, and inform the expected recovery time, but this requires a more advanced server configuration.The default shutdown feature of Anqi CMS will display a page, but its HTTP status code may still be 200. Clear page content can help search engines understand the temporary state of the website.

Q3: Can the site be set to automatically open or close in closed mode?A3: Currently, the shutdown mode in the background management interface of the AnQi CMS is manually operated.The built-in 'Time Factor - Scheduled Publishing Feature' is mainly used for scheduling the publishing of content (such as articles), rather than switching the overall state of the website.Therefore, you need to manually enter the background at the beginning and end of maintenance.